Package com.graphql_java_generator.customscalars
This package provide "as is" some
GraphQLScalarType
s. You can reuse them, or copy and adapt
them.-
Interface Summary Interface Description CustomScalarRegistry Registry for allGraphQLScalarType
available. -
Class Summary Class Description CustomScalarRegistryImpl GraphQLScalarTypeDate 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.GraphQLScalarTypeDateTime 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.GraphQLScalarTypeString Useless String scalar.
It's used both as a sample, to be completed by a developper, according to his/her needs, and for the use in some tests of the plugin logic (like in the Shopify sample, to handle (badly) various scalar as based on strings).
It's actually a bad management, as this custom scalars does nothing, but read basic strings.