Package graphql.execution.incremental
Class AlternativeCallContext
java.lang.Object
graphql.execution.incremental.AlternativeCallContext
Contains data relevant to the execution of a
DeferredFragmentCall and Subscription events.
The responsibilities of this class are similar to ExecutionContext, but restricted to the
execution of a deferred call (instead of the whole GraphQL execution like ExecutionContext).
Some behaviours, like error capturing, need to be scoped to a single DeferredFragmentCall for deferred, because each defer payload
contains its own distinct list of errors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(GraphQLError graphqlError) voidaddErrors(List<GraphQLError> errors) intint
-
Constructor Details
-
AlternativeCallContext
public AlternativeCallContext(int startLevel, int fields) -
AlternativeCallContext
public AlternativeCallContext()
-
-
Method Details
-
getStartLevel
public int getStartLevel() -
getFields
public int getFields() -
addErrors
-
addError
-
getErrors
- Returns:
- a list of errors that were encountered while executing this deferred call
-