Package graphql
Class GraphQL.Builder
java.lang.Object
graphql.GraphQL.Builder
- Enclosing class:
GraphQL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataFetcherExceptionHandlerprivate booleanprivate GraphQLSchemaprivate ExecutionIdProviderprivate Instrumentationprivate ExecutionStrategyprivate PreparsedDocumentProviderprivate ExecutionStrategyprivate ExecutionStrategyprivate ValueUnboxer -
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.For performance reasons you can opt into situation where the default instrumentations (such asDataLoaderDispatcherInstrumentationwill 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 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
-
doNotAddDefaultInstrumentations
For performance reasons you can opt into situation where the default instrumentations (such asDataLoaderDispatcherInstrumentationwill 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
-