Package graphql.execution.incremental
Class DeferredCallContext
- java.lang.Object
-
- graphql.execution.incremental.DeferredCallContext
-
public class DeferredCallContext extends java.lang.Object
Contains data relevant to the execution of aDeferredFragmentCall
.The responsibilities of this class are similar to
ExecutionContext
, but restricted to the execution of a deferred call (instead of the whole GraphQL execution likeExecutionContext
).Some behaviours, like error capturing, need to be scoped to a single
DeferredFragmentCall
, because each defer payload contains its own distinct list of errors.
-
-
Constructor Summary
Constructors Constructor Description DeferredCallContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(GraphQLError graphqlError)
void
addErrors(java.util.List<GraphQLError> errors)
java.util.List<GraphQLError>
getErrors()
-
-
-
Method Detail
-
addErrors
public void addErrors(java.util.List<GraphQLError> errors)
-
addError
public void addError(GraphQLError graphqlError)
-
getErrors
public java.util.List<GraphQLError> getErrors()
- Returns:
- a list of errors that were encountered while executing this deferred call
-
-