Package org.springframework.graphql.execution
@NonNullApi
@NonNullFields
package org.springframework.graphql.execution
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL.-
ClassDescriptionAbstractGraphQlSourceBuilder<B extends GraphQlSource.Builder<B>>Implementation of
GraphQlSource.Builderthat leaves it to subclasses to initializeGraphQLSchema.Registry for functions to batch load data values, given a set of keys.Spec to complete the registration of a batch loading function.TypeResolverthat tries to find a GraphQL Object type based on the class name of a value returned from aDataFetcher.TypeDefinitionConfigurerthat generates "Connection" types by looking for fields whose type definition name ends in "Connection", considered by the GraphQL Cursor Connections Specification to be a Connection Type, and adding the required type definitions if they don't already exist.Helper for propagating context values from and to Reactor and GraphQL contexts.Deprecated, for removal: This API element is subject to removal in a future version.Contract to resolve exceptions fromDataFetchers.Adapter forDataFetcherExceptionResolverthat pre-implements the asynchronous contract and exposes the following synchronous protected methods:DataFetcherExceptionResolverAdapter.resolveToSingleError(java.lang.Throwable, graphql.schema.DataFetchingEnvironment)DataFetcherExceptionResolverAdapter.resolveToMultipleErrors(java.lang.Throwable, graphql.schema.DataFetchingEnvironment)Contract for access to theDataLoaderRegistryfor each request for the purpose of registeringDataLoaderinstances.Default implementation ofBatchLoaderRegistrythat stores batch loader registrations.ExecutionGraphQlServicethat uses aGraphQlSourceto obtain aGraphQLinstance and perform query execution.Common categories to use to classify for exceptions raised byDataFetcher's that can enable a client to make automated decisions.ContextAccessorthat enables support for reading and writing values to and from aGraphQLContext.Strategy to resolve aGraphQLand aGraphQLSchema.GraphQlSource.Builder<B extends GraphQlSource.Builder<B>>Common configuration options for allGraphQlSourcebuilders, independent of howGraphQLSchemais created.GraphQlSourcebuilder that relies on parsing schema definition files and uses aRuntimeWiringto create the underlyingGraphQLSchema.Indicates that no GraphQL schema definition was configured on theGraphQlSource.Builder.ReactiveDataFetcherExceptionResolverfor Spring Security exceptions.Callbacks that allow applying changes to theRuntimeWiring.BuilderinGraphQlSource.Builder.Inspect schema mappings on startup to ensure the following: Schema fields have either aDataFetcherregistration or a corresponding Class property.Strategy to resolve the Java class(es) for aGraphQLObjectType, effectively the reverse ofTypeResolver, for schema inspection purposes.Helps to configureSchemaMappingInspector.Report produced as a result of inspecting schema mappings.Information about a schema type skipped during the inspection.ThreadLocalAccessorto extract and restore security context throughSecurityContextHolder.DataFetcherExceptionResolverfor Spring Security exceptions.SpecializedDataFetcherthat exposes additional details such as return type information.Contract for a component that is invoked when a GraphQL subscriptionPublisherends with an error.Adapter forSubscriptionExceptionResolverthat pre-implements the asynchronous contract and exposes the following synchronous protected methods:SubscriptionExceptionResolverAdapter.resolveToSingleError(java.lang.Throwable)SubscriptionExceptionResolverAdapter.resolveToMultipleErrors(java.lang.Throwable)An exception raised after a GraphQL subscriptionPublisherends with an exception, and after that exception has been resolved to GraphQL errors.Callback that allows customizing theTypeDefinitionRegistrycreated from parsed schema files.HelpsGraphQLTypeVisitors to recognize whether a type is the subscription type.
ContextPropagationHelper.