public static interface GraphQlSource.Builder<B extends GraphQlSource.Builder<B>>
GraphQlSource
builders,
independent of how GraphQLSchema
is created.Modifier and Type | Method and Description |
---|---|
GraphQlSource |
build()
Build the
GraphQlSource instance. |
B |
configureGraphQl(Consumer<GraphQL.Builder> configurer)
Configure consumers to be given access to the
GraphQL.Builder
used to build GraphQL . |
B |
exceptionResolvers(List<DataFetcherExceptionResolver> resolvers)
Add
DataFetcherExceptionResolver s for resolving exceptions
from DataFetcher s. |
B |
instrumentation(List<Instrumentation> instrumentations)
Provide
Instrumentation components to instrument the
execution of GraphQL queries. |
B |
typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
Add
GraphQLTypeVisitor s to visit all element of the created
GraphQLSchema . |
B exceptionResolvers(List<DataFetcherExceptionResolver> resolvers)
DataFetcherExceptionResolver
s for resolving exceptions
from DataFetcher
s.resolvers
- the resolvers to addB typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
GraphQLTypeVisitor
s to visit all element of the created
GraphQLSchema
.
Note: Visitors are applied via
SchemaTraverser
and cannot change the schema.
typeVisitors
- the type visitorsSchemaTransformer.transformSchema(GraphQLSchema, GraphQLTypeVisitor)
B instrumentation(List<Instrumentation> instrumentations)
Instrumentation
components to instrument the
execution of GraphQL queries.instrumentations
- the instrumentation componentsGraphQL.Builder.instrumentation(Instrumentation)
B configureGraphQl(Consumer<GraphQL.Builder> configurer)
GraphQL.Builder
used to build GraphQL
.configurer
- the configurerGraphQlSource build()
GraphQlSource
instance.