Package graphql.execution.incremental
Class DeferredFragmentCall
java.lang.Object
graphql.execution.incremental.DeferredFragmentCall
- All Implemented Interfaces:
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".-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeferredFragmentCall(String label, ResultPath path, List<Supplier<CompletableFuture<DeferredFragmentCall.FieldWithExecutionResult>>> calls, AlternativeCallContext alternativeCallContext) -
Method Summary
-
Constructor Details
-
DeferredFragmentCall
public DeferredFragmentCall(String label, ResultPath path, List<Supplier<CompletableFuture<DeferredFragmentCall.FieldWithExecutionResult>>> calls, AlternativeCallContext alternativeCallContext)
-
-
Method Details
-
getPath
-
invoke
- Specified by:
invokein interfaceIncrementalCall<DeferPayload>
-