query method
Resolves a single query according to the QueryOptions
specified and
returns a Future which resolves with the QueryResult
or throws an
Exception.
Implementation
Future<QueryResult> query(
QueryOptions options, [
Exception Function(Map<String, dynamic>)? handleException,
]) {
return _middleware(() async {
return _transaction(options.operationName, () async {
final QueryResult result = await _queryLimiter.execute(
() async => await (await client).query(options).timeout(timeout),
);
GraphQlProviderExceptions.fire(result, handleException);
return result;
});
});
}