| Package | Description |
|---|---|
| org.springframework.graphql.execution |
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL. |
| Modifier and Type | Method and Description |
|---|---|
static GraphQlSource.Builder |
GraphQlSource.builder()
Return a builder for a
GraphQlSource given input for the initialization of
GraphQL and GraphQLSchema. |
GraphQlSource.Builder |
GraphQlSource.Builder.configureGraphQl(java.util.function.Consumer<graphql.GraphQL.Builder> configurer)
Configure consumers to be given access to the
GraphQL.Builder used to
build GraphQL. |
GraphQlSource.Builder |
GraphQlSource.Builder.configureRuntimeWiring(RuntimeWiringConfigurer configurer)
Add a component that is given access to the
RuntimeWiring.Builder
used to register DataFetchers, custom scalar
types, type resolvers, and more. |
GraphQlSource.Builder |
GraphQlSource.Builder.defaultTypeResolver(graphql.schema.TypeResolver typeResolver)
Configure the default
TypeResolver to use for GraphQL Interface
and Union types that don't already have such a registration after all
RuntimeWiringConfigurer's
have been applied. |
GraphQlSource.Builder |
GraphQlSource.Builder.exceptionResolvers(java.util.List<DataFetcherExceptionResolver> resolvers)
Add
DataFetcherExceptionResolver's to use for resolving exceptions from
DataFetcher's. |
GraphQlSource.Builder |
GraphQlSource.Builder.instrumentation(java.util.List<graphql.execution.instrumentation.Instrumentation> instrumentations)
Provide
Instrumentation components to instrument the execution of
GraphQL queries. |
GraphQlSource.Builder |
GraphQlSource.Builder.schemaFactory(java.util.function.BiFunction<graphql.schema.idl.TypeDefinitionRegistry,graphql.schema.idl.RuntimeWiring,graphql.schema.GraphQLSchema> schemaFactory)
Configure a function to create the
GraphQLSchema instance from the
given TypeDefinitionRegistry and RuntimeWiring. |
GraphQlSource.Builder |
GraphQlSource.Builder.schemaResources(org.springframework.core.io.Resource... resources)
Add ".graphqls" schema resources to be
merged into the type registry. |
GraphQlSource.Builder |
GraphQlSource.Builder.typeVisitors(java.util.List<graphql.schema.GraphQLTypeVisitor> typeVisitors)
Add
GraphQLTypeVisitors to visit all element of the created
GraphQLSchema. |