Package org.springframework.graphql.data.method.annotation.support
@NonNullApi
@NonNullFields
package org.springframework.graphql.data.method.annotation.support
Resolvers for method parameters of annotated handler methods.
-
ClassDescription
RuntimeWiringConfigurer
that finds@SchemaMapping
annotated handler methods in@Controller
classes declared in Spring configuration, and registers them asDataFetcher
s.Resolver for a method parameter that is annotated with@Argument
.Resolver for a method parameter that is annotated with@Arguments
, similar to whatArgumentMethodArgumentResolver
does but using the full fullGraphQL arguments
map as the source for binding to the target Object rather than a specific argument value within it.Resolver to obtainAuthentication.getPrincipal()
from Spring Security context viaSecurityContext.getAuthentication()
for parameters annotated withAuthenticationPrincipal
.An extension ofHandlerMethod
for annotated handler methods adapted toBatchLoaderWithContext
orMappedBatchLoaderWithContext
with the list of keys andBatchLoaderEnvironment
as their input.Resolver for a@ContextValue
annotated method parameter.No-op resolver for method arguments of typeContinuation
.An extension ofHandlerMethod
for annotated handler methods adapted toDataFetcher
withDataFetchingEnvironment
as their input.Resolver forDataFetchingEnvironment
and related values that can be accessed through theDataFetchingEnvironment
such as:GraphQLContext
DataFetchingFieldSelectionSet
Locale
orOptional<Locale>
as well as arguments of typeResolver for aDataLoader
obtained viaDataFetchingEnvironment.getDataLoader(String)
.Resolver for a@LocalContextValue
annotated method parameter.Resolver to obtainPrincipal
from Spring Security context viaSecurityContext.getAuthentication()
.Resolver for a method parameter that is an interface annotated with@ProjectedPayload
.Resolver for method arguments of typeSort
.Resolver for the source/parent of a field, obtained viaDataFetchingEnvironment.getSource()
.Resolver for a method argument of typeSubrange
initialized from "first", "last", "before", and "after" GraphQL arguments.