Class DeferredCallContext


  • public class DeferredCallContext
    extends java.lang.Object
    Contains data relevant to the execution of a DeferredFragmentCall.

    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, because each defer payload contains its own distinct list of errors.

    • Constructor Detail

      • DeferredCallContext

        public DeferredCallContext()
    • 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