Class DateScalar

java.lang.Object
com.espacogeek.geek.types.DateScalar
All Implemented Interfaces:
graphql.schema.Coercing<Date,String>

public class DateScalar extends Object implements graphql.schema.Coercing<Date,String>
  • Constructor Details

    • DateScalar

      public DateScalar()
  • Method Details

    • serialize

      public String serialize(Object dataFetcherResult) throws graphql.schema.CoercingSerializeException
      Specified by:
      serialize in interface graphql.schema.Coercing<Date,String>
      Throws:
      graphql.schema.CoercingSerializeException
    • parseValue

      public Date parseValue(Object input) throws graphql.schema.CoercingParseValueException
      Specified by:
      parseValue in interface graphql.schema.Coercing<Date,String>
      Throws:
      graphql.schema.CoercingParseValueException
    • parseLiteral

      public Date parseLiteral(Object input) throws graphql.schema.CoercingParseLiteralException
      Specified by:
      parseLiteral in interface graphql.schema.Coercing<Date,String>
      Throws:
      graphql.schema.CoercingParseLiteralException