@PublicApi public static class GraphQL.Builder extends java.lang.Object
Constructor and Description |
---|
Builder(GraphQLSchema graphQLSchema) |
Modifier and Type | Method and Description |
---|---|
GraphQL |
build() |
GraphQL.Builder |
doNotAddDefaultInstrumentations()
For performance reasons you can opt into situation where the default instrumentations (such
as
DataLoaderDispatcherInstrumentation will not be
automatically added into the graphql instance. |
GraphQL.Builder |
executionIdProvider(ExecutionIdProvider executionIdProvider) |
GraphQL.Builder |
instrumentation(Instrumentation instrumentation) |
GraphQL.Builder |
mutationExecutionStrategy(ExecutionStrategy executionStrategy) |
GraphQL.Builder |
preparsedDocumentProvider(PreparsedDocumentProvider preparsedDocumentProvider) |
GraphQL.Builder |
queryExecutionStrategy(ExecutionStrategy executionStrategy) |
GraphQL.Builder |
schema(GraphQLSchema graphQLSchema) |
GraphQL.Builder |
subscriptionExecutionStrategy(ExecutionStrategy executionStrategy) |
GraphQL.Builder |
valueUnboxer(ValueUnboxer valueUnboxer) |
public Builder(GraphQLSchema graphQLSchema)
public GraphQL.Builder schema(GraphQLSchema graphQLSchema)
public GraphQL.Builder queryExecutionStrategy(ExecutionStrategy executionStrategy)
public GraphQL.Builder mutationExecutionStrategy(ExecutionStrategy executionStrategy)
public GraphQL.Builder subscriptionExecutionStrategy(ExecutionStrategy executionStrategy)
public GraphQL.Builder instrumentation(Instrumentation instrumentation)
public GraphQL.Builder preparsedDocumentProvider(PreparsedDocumentProvider preparsedDocumentProvider)
public GraphQL.Builder executionIdProvider(ExecutionIdProvider executionIdProvider)
public GraphQL.Builder doNotAddDefaultInstrumentations()
DataLoaderDispatcherInstrumentation
will not be
automatically added into the graphql instance.
For most situations this is not needed unless you are really pushing the boundaries of performance
By default a certain graphql instrumentations will be added to the mix to more easily enable certain functionality. This allows you to stop this behavior
public GraphQL.Builder valueUnboxer(ValueUnboxer valueUnboxer)
public GraphQL build()