Class GraphQLScalarTypeDate

java.lang.Object
graphql.schema.GraphQLScalarType
com.graphql_java_generator.customscalars.GraphQLScalarTypeDate
All Implemented Interfaces:
graphql.schema.GraphQLDirectiveContainer, graphql.schema.GraphQLInputType, graphql.schema.GraphQLNullableType, graphql.schema.GraphQLOutputType, graphql.schema.GraphQLType, graphql.schema.GraphQLUnmodifiedType

public class GraphQLScalarTypeDate
extends graphql.schema.GraphQLScalarType
A proposed Date scalar, that stores dates in String, formatted as: YYYY-MM-DD
This Scalar is proposed to be used, for integration testing (checks that the plugin correctly manages Custom Scalars, see samples) and with more documentation to help people to create their own Custom Scalar implementations.
Author:
EtienneSF
  • Nested Class Summary

    Nested classes/interfaces inherited from class graphql.schema.GraphQLScalarType

    graphql.schema.GraphQLScalarType.Builder
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphQLScalarTypeDate()
    As the constructors for the GraphQLScalarType are marked as deprecated, the way to create Custom Scalars may change in the future.
  • Method Summary

    Methods inherited from class graphql.schema.GraphQLScalarType

    accept, getChildren, getCoercing, getDefinition, getDescription, getDirectives, getName, newScalar, newScalar, toString, transform

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface graphql.schema.GraphQLDirectiveContainer

    getDirective, getDirectivesByName
  • Constructor Details

    • GraphQLScalarTypeDate

      public GraphQLScalarTypeDate()
      As the constructors for the GraphQLScalarType are marked as deprecated, the way to create Custom Scalars may change in the future. So this constructor can only be used by the CustomScalars, that works as a singleton factory
      Parameters:
      name -
      description -
      coercing -
      See Also:
      GraphQLScalarType(String, String, Coercing)