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 defaultDataFetcherExceptionHandlerthat will be used to handle exceptions that happen inDataFetcherinvocations.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 defaultDataFetcherExceptionHandlerthat will be used to handle exceptions that happen inDataFetcherinvocations.- 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
-