queryGroup method
Stream<Iterable<T> >
queryGroup({
- required QueryTransformer<
T> spec, - required String collectionPath,
- bool includeMetadataChanges = false,
Usage is as same as in the FirebaseRepository.query, but this is for collection group querying.
This function will return a Stream of Iterables with data from the specified collection group.
You can find more about the collection groups in the official firebase documentation.
https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query
Implementation
Stream<Iterable<T>> queryGroup({
required QueryTransformer<T> spec,
required String collectionPath,
bool includeMetadataChanges = false,
}) {
return _query2stream(
FirebaseFirestore.instance.collectionGroup(collectionPath),
spec,
includeMetadataChanges,
);
}