Package com.graphql_java_generator.customscalars


package com.graphql_java_generator.customscalars
This package provide "as is" some GraphQLScalarTypes. You can reuse them, or copy and adapt them.
  • Class
    Description
    This class represents a custom scalar, with all the information to allow proper execution of the generated code
    Registry for all GraphQLScalarType available.
     
     
    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.
    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.
    ID are managed as String, on client side.
    ID are managed as UUID, on server side.
    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.