queryGroupSingle method
Future<Iterable<T> >
queryGroupSingle({
- required QueryTransformer<
T> spec, - required String collectionPath,
- Source source = Source.serverAndCache,
Same as FirebaseRepository.queryGroup but instead of returning a Stream this will return a Future with the latest values in the Firestore.
Usage is as same as the example in FirebaseRepository.query and FirebaseRepository.queryGroup
Implementation
Future<Iterable<T>> queryGroupSingle({
required QueryTransformer<T> spec,
required String collectionPath,
Source source = Source.serverAndCache,
}) async {
return _query2future(
FirebaseFirestore.instance.collectionGroup(collectionPath),
spec,
source,
);
}