Uses of Class
graphql.GraphQLContext
Packages that use GraphQLContext
Package
Description
-
Uses of GraphQLContext in graphql
Methods in graphql that return GraphQLContextModifier and TypeMethodDescriptionGraphQLContext.Builder.build()Deletes a key in the contextstatic GraphQLContextGraphQLContext.getDefault()ExecutionInput.getGraphQLContext()TypeResolutionEnvironment.getGraphQLContext()static GraphQLContextGraphQLContext.of(Consumer<GraphQLContext.Builder> contextBuilderConsumer) Creates a new GraphqlContext with the map of context added to itstatic GraphQLContextCreates a new GraphqlContext with the map of context added to itPuts a value into the contextGraphQLContext.putAll(GraphQLContext context) Puts all of the values into the contextGraphQLContext.putAll(GraphQLContext.Builder contextBuilder) Puts all of the values into the contextGraphQLContext.putAll(Consumer<GraphQLContext.Builder> contextBuilderConsumer) Puts all of the values into the contextPuts all of the values into the contextMethods in graphql with parameters of type GraphQLContextModifier and TypeMethodDescriptionGraphQLContext.Builder.of(GraphQLContext graphQLContext) Adds all of the values in the map into the context builder.GraphQLContext.putAll(GraphQLContext context) Puts all of the values into the context -
Uses of GraphQLContext in graphql.execution
Methods in graphql.execution that return GraphQLContextModifier and TypeMethodDescriptionExecutionContext.getGraphQLContext()FieldCollectorParameters.getGraphQLContext()TypeResolutionParameters.getGraphQLContext()Methods in graphql.execution with parameters of type GraphQLContextModifier and TypeMethodDescriptionstatic CoercedVariablesValuesResolver.coerceVariableValues(GraphQLSchema schema, List<VariableDefinition> variableDefinitions, RawVariables rawVariables, GraphQLContext graphqlContext, Locale locale) This method coerces the "raw" variables values provided to the engine.static ObjectValuesResolver.externalValueToInternalValue(GraphqlFieldVisibility fieldVisibility, Object externalValue, GraphQLInputType type, GraphQLContext graphqlContext, Locale locale) Converts an external value to an internal valueValuesResolver.getArgumentValues(GraphQLCodeRegistry codeRegistry, List<GraphQLArgument> argumentTypes, List<Argument> arguments, CoercedVariables coercedVariables, GraphQLContext graphqlContext, Locale locale) ValuesResolver.getArgumentValues(List<GraphQLArgument> argumentTypes, List<Argument> arguments, CoercedVariables coercedVariables, GraphQLContext graphqlContext, Locale locale) This is not used for validation: the argument literals are all validated and the variables are validated (when coerced)static <T> TValuesResolver.getInputValueImpl(GraphQLInputType inputType, InputValueWithState inputValue, GraphQLContext graphqlContext, Locale locale) static Map<String, NormalizedInputValue> ValuesResolver.getNormalizedVariableValues(GraphQLSchema schema, List<VariableDefinition> variableDefinitions, RawVariables rawVariables, GraphQLContext graphqlContext, Locale locale) Normalized variables values are Literals with type information.ExecutionContextBuilder.graphQLContext(GraphQLContext context) FieldCollectorParameters.Builder.graphQLContext(GraphQLContext graphQLContext) TypeResolutionParameters.Builder.graphQLContext(GraphQLContext context) static ObjectValuesResolver.valueToInternalValue(InputValueWithState inputValueWithState, GraphQLInputType inputType, GraphQLContext graphqlContext, Locale locale) static Value<?> ValuesResolver.valueToLiteral(@NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, Locale locale) static Value<?> ValuesResolver.valueToLiteral(@NotNull GraphqlFieldVisibility fieldVisibility, @NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, Locale locale) Takes a value which can be in different states (internal, literal, external value) and converts into Literal -
Uses of GraphQLContext in graphql.execution.conditional
Methods in graphql.execution.conditional that return GraphQLContextMethods in graphql.execution.conditional with parameters of type GraphQLContextModifier and TypeMethodDescriptionbooleanConditionalNodes.shouldInclude(DirectivesContainer<?> element, Map<String, Object> variables, GraphQLSchema graphQLSchema, GraphQLContext graphQLContext) -
Uses of GraphQLContext in graphql.execution.directives
Methods in graphql.execution.directives with parameters of type GraphQLContextModifier and TypeMethodDescriptionQueryDirectives.Builder.graphQLContext(GraphQLContext graphQLContext) QueryDirectivesBuilder.graphQLContext(GraphQLContext graphQLContext) DirectivesResolver.resolveDirectives(List<Directive> directives, GraphQLSchema schema, Map<String, Object> variables, GraphQLContext graphQLContext, Locale locale) Constructors in graphql.execution.directives with parameters of type GraphQLContextModifierConstructorDescriptionQueryDirectivesImpl(MergedField mergedField, GraphQLSchema schema, Map<String, Object> variables, GraphQLContext graphQLContext, Locale locale) -
Uses of GraphQLContext in graphql.execution.instrumentation.parameters
Methods in graphql.execution.instrumentation.parameters that return GraphQLContext -
Uses of GraphQLContext in graphql.execution.values
Methods in graphql.execution.values with parameters of type GraphQLContextModifier and TypeMethodDescriptionInputInterceptor.intercept(@Nullable Object value, @NotNull GraphQLInputType graphQLType, @NotNull GraphQLContext graphqlContext, @NotNull Locale locale) This is called with a value that is to be presented to theValuesResolvercode. -
Uses of GraphQLContext in graphql.execution.values.legacycoercing
Methods in graphql.execution.values.legacycoercing with parameters of type GraphQLContextModifier and TypeMethodDescriptionLegacyCoercingInputInterceptor.intercept(@Nullable Object input, @NotNull GraphQLInputType graphQLType, @NotNull GraphQLContext graphqlContext, @NotNull Locale locale) -
Uses of GraphQLContext in graphql.normalized
Methods in graphql.normalized that return GraphQLContextModifier and TypeMethodDescriptionExecutableNormalizedOperationFactory.Options.getGraphQLContext()FieldCollectorNormalizedQueryParams.getGraphQLContext()Methods in graphql.normalized with parameters of type GraphQLContextModifier and TypeMethodDescriptionExecutableNormalizedOperationFactory.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, Locale locale) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.ExecutableNormalizedOperationFactory.Options.graphQLContext(GraphQLContext graphQLContext) Context object to use when parsing the operation.FieldCollectorNormalizedQueryParams.Builder.graphQLContext(GraphQLContext graphQLContext) -
Uses of GraphQLContext in graphql.scalar
Methods in graphql.scalar with parameters of type GraphQLContextModifier and TypeMethodDescription@Nullable BooleanGraphqlBooleanCoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable DoubleGraphqlFloatCoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable ObjectGraphqlIDCoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable IntegerGraphqlIntCoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable StringGraphqlStringCoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) GraphqlBooleanCoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) GraphqlFloatCoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) GraphqlIDCoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) GraphqlIntCoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) GraphqlStringCoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable BooleanGraphqlBooleanCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable DoubleGraphqlFloatCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable ObjectGraphqlIDCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable IntegerGraphqlIntCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @Nullable StringGraphqlStringCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @NotNull Value<?> GraphqlBooleanCoercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @NotNull Value<?> GraphqlFloatCoercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @NotNull Value<?> GraphqlIDCoercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @NotNull Value<?> GraphqlIntCoercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) @NotNull Value<?> GraphqlStringCoercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) -
Uses of GraphQLContext in graphql.schema
Methods in graphql.schema that return GraphQLContextModifier and TypeMethodDescriptionDataFetchingEnvironment.getGraphQlContext()Returns a shared context argument that is set up when theGraphQL.execute(graphql.ExecutionInput))} method is invoked.DataFetchingEnvironmentImpl.getGraphQlContext()DelegatingDataFetchingEnvironment.getGraphQlContext()Methods in graphql.schema with parameters of type GraphQLContextModifier and TypeMethodDescriptionDataFetchingEnvironmentImpl.Builder.graphQLContext(GraphQLContext context) default ICoercing.parseLiteral(@NotNull Value<?> input, @NotNull CoercedVariables variables, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) Called during query execution to convert a query input AST node into a Java object acceptable for the scalar type.GraphQLEnumType.parseLiteral(Value<?> input, GraphQLContext graphQLContext, Locale locale) default ICoercing.parseValue(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) Called to resolve an input from a query variable into a Java object acceptable for the scalar type.GraphQLEnumType.parseValue(Object input, GraphQLContext graphQLContext, Locale locale) default OCoercing.serialize(@NotNull Object dataFetcherResult, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) Called to convert a Java object result of a DataFetcher to a valid runtime value for the scalar type.GraphQLEnumType.serialize(Object input, GraphQLContext graphQLContext, Locale locale) default @NotNull Value<?> Coercing.valueToLiteral(@NotNull Object input, @NotNull GraphQLContext graphQLContext, @NotNull Locale locale) Converts an external input value to a literal (Ast Value).Value<?> GraphQLEnumType.valueToLiteral(Object input, GraphQLContext graphQLContext, Locale locale) -
Uses of GraphQLContext in graphql.validation
Methods in graphql.validation that return GraphQLContextMethods in graphql.validation with parameters of type GraphQLContextModifier and TypeMethodDescriptionbooleanValidationUtil.isValidLiteralValue(Value<?> value, GraphQLType type, GraphQLSchema schema, GraphQLContext graphQLContext, Locale locale)