Class GraphQLScalarTypeString

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

public class GraphQLScalarTypeString
extends graphql.schema.GraphQLScalarType
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. It's just for test.
Author:
EtienneSF
  • Nested Class Summary

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

    graphql.schema.GraphQLScalarType.Builder
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphQLScalarTypeString()
    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

    • GraphQLScalarTypeString

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