Type alias OperationResultSource<T>

OperationResultSource<T>: Source<T> & PromiseLike<T> & {
    subscribe(onResult) => Subscription;
    toPromise() => Promise<T>;
}

A source of OperationResults, convertable to a promise, subscribable, or Wonka Source.

Remarks

The Client will often return a OperationResultSource to provide a more flexible Wonka Source.

While a Source may require you to import helpers to convert it to a Promise for a single result, or to subscribe to it, the OperationResultSource is a PromiseLike and has methods to convert it to a promise, or to subscribe to it with a single method call.

Type Parameters

Generated using TypeDoc