@PublicApi public static class GraphQL.Builder extends java.lang.Object
Constructor and Description |
---|
Builder(GraphQLSchema graphQLSchema) |
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 defaultDataFetcherExceptionHandler(DataFetcherExceptionHandler dataFetcherExceptionHandler)
DataFetcherExceptionHandler
that will be used to handle exceptions that happen
in DataFetcher
invocations.dataFetcherExceptionHandler
- the default handler for data fetching exceptionpublic 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()