response property
Future<GraphQLResponse<T> >
response
The GraphQLResponse
returned from this operation.
If operation is canceled before completing, this throws a CancellationException.
Implementation
Future<GraphQLResponse<T>> get response async {
final result = await operation.valueOrCancellation();
if (result is! GraphQLResponse<T> || operation.isCanceled) {
throw CancellationException(id);
}
return result;
}