Package graphql
Class Scalars
- java.lang.Object
-
- graphql.Scalars
-
@PublicApi public class Scalars extends java.lang.Object
This contains the implementations of the Scalar types that ship with graphql-java. Some are proscribed by the graphql specification (Int, Float, String, Boolean and ID) while others are offer because they are common on Java platforms.For more info see https://graphql.org/learn/schema/#scalar-types and more specifically https://spec.graphql.org/draft/#sec-Scalars
-
-
Field Summary
Fields Modifier and Type Field Description static GraphQLScalarType
GraphQLBoolean
This represents the "Boolean" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Booleanstatic GraphQLScalarType
GraphQLFloat
This represents the "Float" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Floatstatic GraphQLScalarType
GraphQLID
This represents the "ID" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-IDstatic GraphQLScalarType
GraphQLInt
This represents the "Int" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Intstatic GraphQLScalarType
GraphQLString
This represents the "String" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-String
-
Constructor Summary
Constructors Constructor Description Scalars()
-
-
-
Field Detail
-
GraphQLInt
public static final GraphQLScalarType GraphQLInt
This represents the "Int" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-IntThe Int scalar type represents a signed 32‐bit numeric non‐fractional value.
-
GraphQLFloat
public static final GraphQLScalarType GraphQLFloat
This represents the "Float" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-FloatNote: The Float type in GraphQL is equivalent to Double in Java. (double precision IEEE 754)
-
GraphQLString
public static final GraphQLScalarType GraphQLString
This represents the "String" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-String
-
GraphQLBoolean
public static final GraphQLScalarType GraphQLBoolean
This represents the "Boolean" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Boolean
-
GraphQLID
public static final GraphQLScalarType GraphQLID
This represents the "ID" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-IDThe ID scalar type represents a unique identifier, often used to re-fetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, it is not intended to be human‐readable. While it is often numeric, it should always serialize as a String.
-
-