public class GraphQLScalarType extends java.lang.Object implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLUnmodifiedType, GraphQLNullableType
GraphQL provides a number of built‐in scalars, but type systems can add additional scalars with semantic meaning, for example, a GraphQL system could define a scalar called Time which, while serialized as a string, promises to conform to ISO‐8601. When querying a field of type Time, you can then rely on the ability to parse the result with an ISO‐8601 parser and use a client‐specific primitive for time. From the spec : http://facebook.github.io/graphql/#sec-Scalars
Constructor and Description |
---|
GraphQLScalarType(java.lang.String name,
java.lang.String description,
Coercing coercing) |
GraphQLScalarType(java.lang.String name,
java.lang.String description,
Coercing coercing,
ScalarTypeDefinition definition) |
Modifier and Type | Method and Description |
---|---|
Coercing |
getCoercing() |
ScalarTypeDefinition |
getDefinition() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.String |
toString() |
public GraphQLScalarType(java.lang.String name, java.lang.String description, Coercing coercing)
public GraphQLScalarType(java.lang.String name, java.lang.String description, Coercing coercing, ScalarTypeDefinition definition)
public java.lang.String getName()
getName
in interface GraphQLType
public java.lang.String getDescription()
public Coercing getCoercing()
public ScalarTypeDefinition getDefinition()
public java.lang.String toString()
toString
in class java.lang.Object