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 that are invoked when a
DataFetcher raises an exception. |
B |
instrumentation(List<Instrumentation> instrumentations)
Provide
Instrumentation components to instrument the
execution of GraphQL queries. |
B |
subscriptionExceptionResolvers(List<SubscriptionExceptionResolver> resolvers)
Add
SubscriptionExceptionResolvers that are invoked when a
GraphQL subscription Publisher ends with
error, and given a chance to resolve the exception to one or more
GraphQL errors to be sent to the client. |
B |
typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
Add
GraphQLTypeVisitors to visit all element of the created
GraphQLSchema. |
B exceptionResolvers(List<DataFetcherExceptionResolver> resolvers)
DataFetcherExceptionResolver's that are invoked when a
DataFetcher raises an exception. Resolvers
are invoked in sequence until one emits a list.resolvers - the resolvers to addB subscriptionExceptionResolvers(List<SubscriptionExceptionResolver> resolvers)
SubscriptionExceptionResolvers that are invoked when a
GraphQL subscription Publisher ends with
error, and given a chance to resolve the exception to one or more
GraphQL errors to be sent to the client. Resolvers are invoked in
sequence until one emits a list.resolvers - the subscription exception resolverB typeVisitors(List<GraphQLTypeVisitor> typeVisitors)
GraphQLTypeVisitors 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.