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

      • onFetchingException

        public void onFetchingException​(ResultPath path,
                                        SourceLocation sourceLocation,
                                        java.lang.Throwable throwable)
      • onError

        public void onError​(GraphQLError graphqlError)
      • getErrors

        public java.util.List<GraphQLError> getErrors()
        Returns:
        a list of errors that were encountered while executing this deferred call