Package graphql
Class GraphQL.Builder
java.lang.Object
graphql.GraphQL.Builder
- Enclosing class:
GraphQL
-
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.Deactivates the automatic dispatching of DataLoaders.executionIdProvider
(ExecutionIdProvider executionIdProvider) instrumentation
(Instrumentation instrumentation) mutationExecutionStrategy
(ExecutionStrategy executionStrategy) preparsedDocumentProvider
(PreparsedDocumentProvider preparsedDocumentProvider) queryExecutionStrategy
(ExecutionStrategy executionStrategy) schema
(GraphQLSchema graphQLSchema) subscriptionExecutionStrategy
(ExecutionStrategy executionStrategy) valueUnboxer
(ValueUnboxer 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
-
doNotAutomaticallyDispatchDataLoader
Deactivates the automatic dispatching of DataLoaders. If deactivated the user is responsible for dispatching the DataLoaders manually.- Returns:
- this builder
-
valueUnboxer
-
build
-