Package graphql
Class GraphQL.Builder
java.lang.Object
graphql.GraphQL.Builder
- Enclosing class:
GraphQL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataFetcherExceptionHandler
private boolean
private GraphQLSchema
private ExecutionIdProvider
private Instrumentation
private ExecutionStrategy
private PreparsedDocumentProvider
private ExecutionStrategy
private ExecutionStrategy
private ValueUnboxer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
defaultDataFetcherExceptionHandler
(DataFetcherExceptionHandler dataFetcherExceptionHandler) This allows you to set a defaultDataFetcherExceptionHandler
that will be used to handle exceptions that happen inDataFetcher
invocations.For performance reasons you can opt into situation where the default instrumentations (such asDataLoaderDispatcherInstrumentation
will not be automatically added into the graphql instance.executionIdProvider
(ExecutionIdProvider executionIdProvider) instrumentation
(Instrumentation instrumentation) mutationExecutionStrategy
(ExecutionStrategy executionStrategy) preparsedDocumentProvider
(PreparsedDocumentProvider preparsedDocumentProvider) queryExecutionStrategy
(ExecutionStrategy executionStrategy) schema
(GraphQLSchema graphQLSchema) subscriptionExecutionStrategy
(ExecutionStrategy executionStrategy) valueUnboxer
(ValueUnboxer valueUnboxer)
-
Field Details
-
graphQLSchema
-
queryExecutionStrategy
-
mutationExecutionStrategy
-
subscriptionExecutionStrategy
-
defaultExceptionHandler
-
idProvider
-
instrumentation
-
preparsedDocumentProvider
-
doNotAddDefaultInstrumentations
private boolean doNotAddDefaultInstrumentations -
valueUnboxer
-
-
Constructor Details
-
Builder
-
-
Method Details
-
schema
-
queryExecutionStrategy
-
mutationExecutionStrategy
-
subscriptionExecutionStrategy
-
defaultDataFetcherExceptionHandler
public GraphQL.Builder defaultDataFetcherExceptionHandler(DataFetcherExceptionHandler dataFetcherExceptionHandler) This allows you to set a defaultDataFetcherExceptionHandler
that will be used to handle exceptions that happen inDataFetcher
invocations.- Parameters:
dataFetcherExceptionHandler
- the default handler for data fetching exception- Returns:
- this builder
-
instrumentation
-
preparsedDocumentProvider
public GraphQL.Builder preparsedDocumentProvider(PreparsedDocumentProvider preparsedDocumentProvider) -
executionIdProvider
-
doNotAddDefaultInstrumentations
For performance reasons you can opt into situation where the default instrumentations (such asDataLoaderDispatcherInstrumentation
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
- Returns:
- this builder
-
valueUnboxer
-
build
-