Class GraphQLScalarTypeDateTime

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

public class GraphQLScalarTypeDateTime
extends graphql.schema.GraphQLScalarType
A proposed DateTime scalar, that stores dates in String, formatted as: 2019-07-03T20:47:55Z
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
    GraphQLScalarTypeDateTime()
    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

    • GraphQLScalarTypeDateTime

      public GraphQLScalarTypeDateTime()
      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)