Uses of Class
graphql.schema.GraphQLScalarType
-
Packages that use GraphQLScalarType Package Description graphql graphql.analysis.values graphql.execution graphql.schema graphql.schema.diffing graphql.schema.idl graphql.schema.impl graphql.schema.visitor graphql.validation -
-
Uses of GraphQLScalarType in graphql
Fields in graphql declared as GraphQLScalarType Modifier and Type Field Description static GraphQLScalarType
Scalars. GraphQLBoolean
This represents the "Boolean" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Booleanstatic GraphQLScalarType
Scalars. GraphQLFloat
This represents the "Float" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Floatstatic GraphQLScalarType
Scalars. GraphQLID
This represents the "ID" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-IDstatic GraphQLScalarType
Scalars. GraphQLInt
This represents the "Int" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Intstatic GraphQLScalarType
Scalars. GraphQLString
This represents the "String" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-String -
Uses of GraphQLScalarType in graphql.analysis.values
Methods in graphql.analysis.values with parameters of type GraphQLScalarType Modifier and Type Method Description default @Nullable java.lang.Object
ValueVisitor. visitScalarValue(@Nullable java.lang.Object coercedValue, GraphQLScalarType inputType, ValueVisitor.InputElements inputElements)
This is called when a scalar value is encountered -
Uses of GraphQLScalarType in graphql.execution
Methods in graphql.execution with parameters of type GraphQLScalarType Modifier and Type Method Description protected java.util.concurrent.CompletableFuture<ExecutionResult>
ExecutionStrategy. completeValueForScalar(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLScalarType scalarType, java.lang.Object result)
Called to turn an object into a scalar value according to theGraphQLScalarType
by asking that scalar type to coerce the object into a valid valueprivate static java.lang.Object
ValuesResolverConversion. externalValueToInternalValueForScalar(GraphQLScalarType graphQLScalarType, java.lang.Object value, GraphQLContext graphqlContext, java.util.Locale locale)
including validationprivate static Value<?>
ValuesResolverConversion. externalValueToLiteralForScalar(GraphQLScalarType scalarType, java.lang.Object value, GraphQLContext graphqlContext, @NotNull java.util.Locale locale)
No validationprivate static java.lang.Object
ValuesResolverConversion. literalToInternalValueForScalar(Value inputValue, GraphQLScalarType scalarType, CoercedVariables coercedVariables, GraphQLContext graphqlContext, @NotNull java.util.Locale locale)
no validation -
Uses of GraphQLScalarType in graphql.schema
Methods in graphql.schema that return GraphQLScalarType Modifier and Type Method Description GraphQLScalarType
GraphQLScalarType.Builder. build()
GraphQLScalarType
GraphQLScalarType. transform(java.util.function.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.GraphQLScalarType
GraphQLScalarType. withNewChildren(SchemaElementChildrenContainer newChildren)
Methods in graphql.schema with parameters of type GraphQLScalarType Modifier and Type Method Description static GraphQLScalarType.Builder
GraphQLScalarType. newScalar(GraphQLScalarType existing)
TraversalControl
GraphQLTypeVisitor. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
TraversalControl
GraphQLTypeVisitorStub. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
Constructors in graphql.schema with parameters of type GraphQLScalarType Constructor Description Builder(GraphQLScalarType existing)
-
Uses of GraphQLScalarType in graphql.schema.diffing
Methods in graphql.schema.diffing with parameters of type GraphQLScalarType Modifier and Type Method Description private void
SchemaGraphFactory. newScalar(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
Uses of GraphQLScalarType in graphql.schema.idl
Fields in graphql.schema.idl with type parameters of type GraphQLScalarType Modifier and Type Field Description static java.util.List<GraphQLScalarType>
ScalarInfo. GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specificationprivate java.util.Map<java.lang.String,GraphQLScalarType>
RuntimeWiring.Builder. scalars
private java.util.Map<java.lang.String,GraphQLScalarType>
RuntimeWiring. scalars
Methods in graphql.schema.idl that return GraphQLScalarType Modifier and Type Method Description (package private) GraphQLScalarType
SchemaGeneratorHelper. buildScalar(SchemaGeneratorHelper.BuildContext buildCtx, ScalarTypeDefinition typeDefinition)
static GraphQLScalarType
EchoingWiringFactory. fakeScalar(java.lang.String name)
GraphQLScalarType
CombinedWiringFactory. getScalar(ScalarWiringEnvironment environment)
GraphQLScalarType
MockedWiringFactory. getScalar(ScalarWiringEnvironment environment)
GraphQLScalarType
NoopWiringFactory. getScalar(ScalarWiringEnvironment environment)
default GraphQLScalarType
WiringFactory. getScalar(ScalarWiringEnvironment environment)
Returns aGraphQLScalarType
given scalar defined in IDLdefault 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 elementGraphQLScalarType
SchemaGeneratorDirectiveHelper. onScalar(GraphQLScalarType element, SchemaGeneratorDirectiveHelper.Parameters params)
Methods in graphql.schema.idl that return types with arguments of type GraphQLScalarType Modifier and Type Method Description java.util.Map<java.lang.String,GraphQLScalarType>
RuntimeWiring. getScalars()
private SchemaPrinter.SchemaElementPrinter<GraphQLScalarType>
SchemaPrinter. scalarPrinter()
Methods in graphql.schema.idl with parameters of type GraphQLScalarType Modifier and Type Method Description private static java.lang.Object
EchoingWiringFactory. fakeScalarValue(java.lang.String fieldName, GraphQLScalarType scalarType)
private java.lang.String
SchemaGeneratorHelper. getScalarDesc(GraphQLScalarType scalar, ScalarTypeDefinition typeDefinition)
private boolean
ArgValueOfAllowedTypeChecker. isArgumentValueScalarLiteral(GraphQLScalarType scalarType, Value<?> instanceValue)
static boolean
ScalarInfo. isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
Returns true if the scalar type is a scalar that is specified by the graphql specificationGraphQLScalarType
SchemaGeneratorDirectiveHelper. onScalar(GraphQLScalarType element, SchemaGeneratorDirectiveHelper.Parameters params)
RuntimeWiring.Builder
RuntimeWiring.Builder. scalar(GraphQLScalarType scalarType)
This allows you to add in new custom Scalar implementations beyond the standard set.TraversalControl
SchemaDirectiveWiringSchemaGeneratorPostProcessing.Visitor. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
Method parameters in graphql.schema.idl with type arguments of type GraphQLScalarType Modifier and Type Method Description private static boolean
ScalarInfo. inList(java.util.List<GraphQLScalarType> scalarList, java.lang.String scalarTypeName)
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 -
Uses of GraphQLScalarType in graphql.schema.impl
Methods in graphql.schema.impl with parameters of type GraphQLScalarType Modifier and Type Method Description TraversalControl
GraphQLTypeCollectingVisitor. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
TraversalControl
MultiReadOnlyGraphQLTypeVisitor. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
-
Uses of GraphQLScalarType in graphql.schema.visitor
Methods in graphql.schema.visitor with parameters of type GraphQLScalarType Modifier and Type Method Description TraversalControl
GraphQLSchemaVisitorAdapter. visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
default GraphQLSchemaTraversalControl
GraphQLSchemaVisitor. visitScalarType(GraphQLScalarType scalarType, GraphQLSchemaVisitor.ScalarTypeVisitorEnvironment environment)
Called when visiting aGraphQLScalarType
in the schema -
Uses of GraphQLScalarType in graphql.validation
Methods in graphql.validation with parameters of type GraphQLScalarType Modifier and Type Method Description protected void
ArgumentValidationUtil. handleScalarError(Value<?> value, GraphQLScalarType type, GraphQLError invalid)
protected void
ValidationUtil. handleScalarError(Value<?> value, GraphQLScalarType type, GraphQLError invalid)
-