Package org.springframework.graphql.execution
@NonNullApi
@NonNullFields
package org.springframework.graphql.execution
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL.-
ClassDescriptionRegistry 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.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.A default implementation ofBatchLoaderRegistrythat accepts registrations, and also an implementation ofDataLoaderRegistrarto apply those registrations to aDataLoaderRegistry.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.ThreadLocalAccessorto extract and restore security context throughSecurityContextHolder.DataFetcherExceptionResolverfor Spring Security exceptions.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.