query method

  1. @override
Future<List<CloudDocument>> query(
  1. String collection,
  2. CloudQuery query
)
override

The documents of collection that query selects.

Implementation

@override
Future<List<CloudDocument>> query(String collection, CloudQuery query) async {
  try {
    final snapshot = await (await _query(collection, query)).get();
    onRead?.call('query');
    return _docs(snapshot);
  } catch (error, stack) {
    Error.throwWithStackTrace(_error(error), stack);
  }
}