Class DeferredFragmentCall

  • All Implemented Interfaces:
    IncrementalCall<DeferPayload>

    public class DeferredFragmentCall
    extends java.lang.Object
    implements IncrementalCall<DeferPayload>
    Represents a deferred call (aka @defer) to get an execution result sometime after the initial query has returned.

    A deferred call can encompass multiple fields. The deferred call will resolve once all sub-fields resolve.

    For example, this query:

     {
         post {
             ... @defer(label: "defer-post") {
                 text
                 summary
             }
         }
     }
     
    Will result on 1 instance of `DeferredCall`, containing calls for the 2 fields: "text" and "summary".