Package graphql.execution
Class ExecutionContextBuilder
- java.lang.Object
-
- graphql.execution.ExecutionContextBuilder
-
@PublicApi public class ExecutionContextBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ExecutionContextBuilder()
-
Method Summary
-
-
-
Method Detail
-
newExecutionContextBuilder
public static ExecutionContextBuilder newExecutionContextBuilder()
- Returns:
- a new builder of
ExecutionContext
s
-
newExecutionContextBuilder
public static ExecutionContextBuilder newExecutionContextBuilder(ExecutionContext other)
Creates a new builder based on a previous execution context- Parameters:
other
- the previous execution to clone- Returns:
- a new builder of
ExecutionContext
s
-
instrumentation
public ExecutionContextBuilder instrumentation(Instrumentation instrumentation)
-
instrumentationState
public ExecutionContextBuilder instrumentationState(InstrumentationState instrumentationState)
-
executionId
public ExecutionContextBuilder executionId(ExecutionId executionId)
-
graphQLSchema
public ExecutionContextBuilder graphQLSchema(GraphQLSchema graphQLSchema)
-
queryStrategy
public ExecutionContextBuilder queryStrategy(ExecutionStrategy queryStrategy)
-
mutationStrategy
public ExecutionContextBuilder mutationStrategy(ExecutionStrategy mutationStrategy)
-
subscriptionStrategy
public ExecutionContextBuilder subscriptionStrategy(ExecutionStrategy subscriptionStrategy)
-
context
@Deprecated public ExecutionContextBuilder context(java.lang.Object context)
Deprecated.
-
graphQLContext
public ExecutionContextBuilder graphQLContext(GraphQLContext context)
-
localContext
public ExecutionContextBuilder localContext(java.lang.Object localContext)
-
root
public ExecutionContextBuilder root(java.lang.Object root)
-
variables
@Deprecated public ExecutionContextBuilder variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Deprecated.usecoercedVariables(CoercedVariables)
instead- Parameters:
variables
- map of already coerced variables- Returns:
- this builder
-
coercedVariables
public ExecutionContextBuilder coercedVariables(CoercedVariables coercedVariables)
-
fragmentsByName
public ExecutionContextBuilder fragmentsByName(java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
-
document
public ExecutionContextBuilder document(Document document)
-
operationDefinition
public ExecutionContextBuilder operationDefinition(OperationDefinition operationDefinition)
-
dataLoaderRegistry
public ExecutionContextBuilder dataLoaderRegistry(org.dataloader.DataLoaderRegistry dataLoaderRegistry)
-
cacheControl
@Deprecated public ExecutionContextBuilder cacheControl(CacheControl cacheControl)
Deprecated.
-
locale
public ExecutionContextBuilder locale(java.util.Locale locale)
-
valueUnboxer
public ExecutionContextBuilder valueUnboxer(ValueUnboxer valueUnboxer)
-
executionInput
public ExecutionContextBuilder executionInput(ExecutionInput executionInput)
-
resetErrors
public ExecutionContextBuilder resetErrors()
-
build
public ExecutionContext build()
-
-