Class InstrumentationExecutionParameters
java.lang.Object
graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters
- Direct Known Subclasses:
InstrumentationValidationParameters
Parameters sent to
Instrumentation methods-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Objectprivate final ExecutionInputprivate final GraphQLContextprivate final InstrumentationStateprivate final Stringprivate final Stringprivate final GraphQLSchema -
Constructor Summary
ConstructorsConstructorDescriptionInstrumentationExecutionParameters(ExecutionInput executionInput, GraphQLSchema schema, InstrumentationState instrumentationState) -
Method Summary
Modifier and TypeMethodDescription<T> TDeprecated.<T extends InstrumentationState>
TDeprecated.state is now passed in direct to instrumentation methodsgetQuery()withNewState(InstrumentationState instrumentationState) Deprecated.state is now passed in direct to instrumentation methods
-
Field Details
-
executionInput
-
query
-
operation
-
context
-
graphQLContext
-
variables
-
instrumentationState
-
schema
-
-
Constructor Details
-
InstrumentationExecutionParameters
public InstrumentationExecutionParameters(ExecutionInput executionInput, GraphQLSchema schema, InstrumentationState instrumentationState)
-
-
Method Details
-
withNewState
@Deprecated public InstrumentationExecutionParameters withNewState(InstrumentationState instrumentationState) Deprecated.state is now passed in direct to instrumentation methodsReturns a cloned parameters object with the new state- Parameters:
instrumentationState- the new state for this parameters object- Returns:
- a new parameters object with the new state
-
getExecutionInput
-
getQuery
-
getOperation
-
getContext
Deprecated.usegetGraphQLContext()instead- Type Parameters:
T- for two- Returns:
- the legacy context
-
getGraphQLContext
-
getVariables
-
getInstrumentationState
Deprecated.state is now passed in direct to instrumentation methodsPreviously the instrumentation parameters had access to the state created viaInstrumentation.createState(InstrumentationCreateStateParameters)but now to save object allocations, the state is passed directly into instrumentation methods- Type Parameters:
T- for two- Returns:
- the state created previously during a call to
Instrumentation.createState(InstrumentationCreateStateParameters)
-
getSchema
-
getGraphQLContext()instead