Package | Description |
---|---|
graphql | |
graphql.execution | |
graphql.execution.nextgen |
WARNING: All code in this package is a work in progress for a new execution engine.
|
graphql.schema | |
graphql.schema.idl | |
graphql.validation |
Modifier and Type | Field and Description |
---|---|
static GraphQLScalarType |
Scalars.GraphQLBigDecimal
This represents the "BigDecimal" type which is a representation of java.math.BigDecimal
|
static GraphQLScalarType |
Scalars.GraphQLBigInteger
This represents the "BigInteger" type which is a representation of java.math.BigInteger
|
static GraphQLScalarType |
Scalars.GraphQLBoolean
This represents the "Boolean" type as defined in the graphql specification : http://facebook.github.io/graphql/#sec-Boolean
|
static GraphQLScalarType |
Scalars.GraphQLByte
This represents the "Byte" type which is a representation of java.lang.Byte
|
static GraphQLScalarType |
Scalars.GraphQLChar
This represents the "Char" type which is a representation of java.lang.Character
|
static GraphQLScalarType |
Scalars.GraphQLFloat
This represents the "Float" type as defined in the graphql specification : http://facebook.github.io/graphql/#sec-Float
Note: The Float type in GraphQL is equivalent to Double in Java.
|
static GraphQLScalarType |
Scalars.GraphQLID
This represents the "ID" type as defined in the graphql specification : http://facebook.github.io/graphql/#sec-ID
The ID scalar type represents a unique identifier, often used to re-fetch an object or as the key for a cache.
|
static GraphQLScalarType |
Scalars.GraphQLInt
This represents the "Int" type as defined in the graphql specification : http://facebook.github.io/graphql/#sec-Int
The Int scalar type represents a signed 32‐bit numeric non‐fractional value.
|
static GraphQLScalarType |
Scalars.GraphQLLong
This represents the "Long" type which is a representation of java.lang.Long
|
static GraphQLScalarType |
Scalars.GraphQLShort
This represents the "Short" type which is a representation of java.lang.Short
|
static GraphQLScalarType |
Scalars.GraphQLString
This represents the "String" type as defined in the graphql specification : http://facebook.github.io/graphql/#sec-String
|
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<ExecutionResult> |
ExecutionStrategy.completeValueForScalar(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLScalarType scalarType,
Object result)
Called to turn an object into a scalar value according to the
GraphQLScalarType by asking that scalar type to coerce the object
into a valid value |
Modifier and Type | Method and Description |
---|---|
protected Object |
FetchedValueAnalyzer.serializeScalarValue(Object toAnalyze,
GraphQLScalarType scalarType) |
Modifier and Type | Method and Description |
---|---|
GraphQLScalarType |
GraphQLScalarType.Builder.build() |
GraphQLScalarType |
GraphQLScalarType.transform(Consumer<GraphQLScalarType.Builder> builderConsumer)
This helps you transform the current GraphQLObjectType into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
Modifier and Type | Method and Description |
---|---|
static GraphQLScalarType.Builder |
GraphQLScalarType.newScalar(GraphQLScalarType existing) |
TraversalControl |
GraphQLTypeVisitorStub.visitGraphQLScalarType(GraphQLScalarType node,
TraverserContext<GraphQLType> context) |
TraversalControl |
GraphQLTypeVisitor.visitGraphQLScalarType(GraphQLScalarType node,
TraverserContext<GraphQLType> context) |
TraversalControl |
GraphQLTypeCollectingVisitor.visitGraphQLScalarType(GraphQLScalarType node,
TraverserContext<GraphQLType> context) |
Constructor and Description |
---|
Builder(GraphQLScalarType existing) |
Modifier and Type | Field and Description |
---|---|
static List<GraphQLScalarType> |
ScalarInfo.GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specification
|
static List<GraphQLScalarType> |
ScalarInfo.STANDARD_SCALARS
A list of the scalar types provided by graphql-java
|
Modifier and Type | Method and Description |
---|---|
static GraphQLScalarType |
EchoingWiringFactory.fakeScalar(String name) |
default GraphQLScalarType |
WiringFactory.getScalar(ScalarWiringEnvironment environment)
Returns a
GraphQLScalarType given scalar defined in IDL |
GraphQLScalarType |
NoopWiringFactory.getScalar(ScalarWiringEnvironment environment) |
default GraphQLScalarType |
SchemaDirectiveWiring.onScalar(SchemaDirectiveWiringEnvironment<GraphQLScalarType> environment)
This is called when a custom scalar is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
Modifier and Type | Method and Description |
---|---|
Map<String,GraphQLScalarType> |
RuntimeWiring.getScalars() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ScalarInfo.isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a scalar that is specified by the graphql specification
|
static boolean |
ScalarInfo.isStandardScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a standard one provided by graphql-java
|
RuntimeWiring.Builder |
RuntimeWiring.Builder.scalar(GraphQLScalarType scalarType)
This allows you to add in new custom Scalar implementations beyond the standard set.
|
Modifier and Type | Method and Description |
---|---|
default GraphQLScalarType |
SchemaDirectiveWiring.onScalar(SchemaDirectiveWiringEnvironment<GraphQLScalarType> environment)
This is called when a custom scalar is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
Modifier and Type | Method and Description |
---|---|
protected void |
ValidationUtil.handleScalarError(Value value,
GraphQLScalarType type) |
protected void |
ArgumentValidationUtil.handleScalarError(Value value,
GraphQLScalarType type) |
Copyright © 2019. All rights reserved.