Uses of Class
graphql.schema.GraphQLScalarType
Packages that use GraphQLScalarType
Package
Description
-
Uses of GraphQLScalarType in graphql
Fields in graphql declared as GraphQLScalarTypeModifier and TypeFieldDescriptionstatic final GraphQLScalarType
Scalars.GraphQLBoolean
This represents the "Boolean" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Booleanstatic final GraphQLScalarType
Scalars.GraphQLFloat
This represents the "Float" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Floatstatic final GraphQLScalarType
Scalars.GraphQLID
This represents the "ID" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-IDstatic final GraphQLScalarType
Scalars.GraphQLInt
This represents the "Int" type as defined in the graphql specification : https://spec.graphql.org/October2021/#sec-Intstatic final 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 GraphQLScalarTypeModifier and TypeMethodDescriptiondefault @Nullable Object
ValueVisitor.visitScalarValue
(@Nullable 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 GraphQLScalarTypeModifier and TypeMethodDescriptionprotected CompletableFuture
<ExecutionResult> ExecutionStrategy.completeValueForScalar
(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLScalarType scalarType, 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 Object
ValuesResolverConversion.externalValueToInternalValueForScalar
(GraphQLScalarType graphQLScalarType, Object value, GraphQLContext graphqlContext, Locale locale) including validationprivate static Value
<?> ValuesResolverConversion.externalValueToLiteralForScalar
(GraphQLScalarType scalarType, Object value, GraphQLContext graphqlContext, @NotNull Locale locale) No validationprivate static Object
ValuesResolverConversion.literalToInternalValueForScalar
(Value inputValue, GraphQLScalarType scalarType, CoercedVariables coercedVariables, GraphQLContext graphqlContext, @NotNull Locale locale) no validation -
Uses of GraphQLScalarType in graphql.schema
Methods in graphql.schema that return GraphQLScalarTypeModifier and TypeMethodDescriptionGraphQLScalarType.Builder.build()
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.GraphQLScalarType.withNewChildren
(SchemaElementChildrenContainer newChildren) Methods in graphql.schema with parameters of type GraphQLScalarTypeModifier and TypeMethodDescriptionstatic GraphQLScalarType.Builder
GraphQLScalarType.newScalar
(GraphQLScalarType existing) GraphQLTypeVisitor.visitGraphQLScalarType
(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) GraphQLTypeVisitorStub.visitGraphQLScalarType
(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) Constructors in graphql.schema with parameters of type GraphQLScalarType -
Uses of GraphQLScalarType in graphql.schema.diffing
Methods in graphql.schema.diffing with parameters of type GraphQLScalarTypeModifier and TypeMethodDescriptionprivate 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 GraphQLScalarTypeModifier and TypeFieldDescriptionstatic final List
<GraphQLScalarType> ScalarInfo.GRAPHQL_SPECIFICATION_SCALARS
A list of the built-in scalar types as defined by the graphql specificationprivate final Map
<String, GraphQLScalarType> RuntimeWiring.Builder.scalars
private final Map
<String, GraphQLScalarType> RuntimeWiring.scalars
Methods in graphql.schema.idl that return GraphQLScalarTypeModifier and TypeMethodDescription(package private) GraphQLScalarType
SchemaGeneratorHelper.buildScalar
(SchemaGeneratorHelper.BuildContext buildCtx, ScalarTypeDefinition typeDefinition) static GraphQLScalarType
EchoingWiringFactory.fakeScalar
(String name) CombinedWiringFactory.getScalar
(ScalarWiringEnvironment environment) MockedWiringFactory.getScalar
(ScalarWiringEnvironment environment) 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 elementSchemaGeneratorDirectiveHelper.onScalar
(GraphQLScalarType element, SchemaGeneratorDirectiveHelper.Parameters params) Methods in graphql.schema.idl that return types with arguments of type GraphQLScalarTypeMethods in graphql.schema.idl with parameters of type GraphQLScalarTypeModifier and TypeMethodDescriptionprivate static Object
EchoingWiringFactory.fakeScalarValue
(String fieldName, GraphQLScalarType scalarType) private 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 specificationSchemaGeneratorDirectiveHelper.onScalar
(GraphQLScalarType element, SchemaGeneratorDirectiveHelper.Parameters params) RuntimeWiring.Builder.scalar
(GraphQLScalarType scalarType) This allows you to add in new custom Scalar implementations beyond the standard set.SchemaDirectiveWiringSchemaGeneratorPostProcessing.Visitor.visitGraphQLScalarType
(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) Method parameters in graphql.schema.idl with type arguments of type GraphQLScalarTypeModifier and TypeMethodDescriptionprivate static boolean
ScalarInfo.inList
(List<GraphQLScalarType> scalarList, 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 GraphQLScalarTypeModifier and TypeMethodDescriptionGraphQLTypeCollectingVisitor.visitGraphQLScalarType
(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) MultiReadOnlyGraphQLTypeVisitor.visitGraphQLScalarType
(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) -
Uses of GraphQLScalarType in graphql.schema.visitor
Methods in graphql.schema.visitor with parameters of type GraphQLScalarTypeModifier and TypeMethodDescriptionGraphQLSchemaVisitorAdapter.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 GraphQLScalarTypeModifier and TypeMethodDescriptionprotected void
ArgumentValidationUtil.handleScalarError
(Value<?> value, GraphQLScalarType type, GraphQLError invalid) protected void
ValidationUtil.handleScalarError
(Value<?> value, GraphQLScalarType type, GraphQLError invalid)