Package graphql.execution
Class ExecutionStrategyParameters
java.lang.Object
graphql.execution.ExecutionStrategyParameters
The parameters that are passed to execution strategies
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Nullable AlternativeCallContext
Returns the deferred call context if we're in the scope of a deferred call.getField()
This returns the current field in its query representations.getPath()
boolean
Returns true if we're in the scope of a deferred call.newParameters
(ExecutionStrategyParameters oldParameters) toString()
transform
(Consumer<ExecutionStrategyParameters.Builder> builderConsumer)
-
Method Details
-
getExecutionStepInfo
-
getSource
-
getFields
-
getNonNullFieldValidator
-
getPath
-
getLocalContext
-
getParent
-
getDeferredCallContext
Returns the deferred call context if we're in the scope of a deferred call. A new DeferredCallContext is created for each @defer block, and is passed down to all fields within the deferred call.query { ... @defer { field1 { # new DeferredCallContext created here field1a # DeferredCallContext passed down to this field } } ... @defer { field2 # new DeferredCallContext created here } }
- Returns:
- the deferred call context or null if we're not in the scope of a deferred call
-
isInDeferredContext
public boolean isInDeferredContext()Returns true if we're in the scope of a deferred call.- Returns:
- true if we're in the scope of a deferred call
-
getField
This returns the current field in its query representations.- Returns:
- the current merged fields
-
transform
public ExecutionStrategyParameters transform(Consumer<ExecutionStrategyParameters.Builder> builderConsumer) -
toString
-
newParameters
-
newParameters
public static ExecutionStrategyParameters.Builder newParameters(ExecutionStrategyParameters oldParameters)
-