watchCollectionGroup abstract method

Stream<Map<String, Map>?> watchCollectionGroup(
  1. String collectionID, {
  2. List<DocumentQuery> filters,
  3. int? limit,
  4. DocumentOrderBy? orderBy,
})

Returns a stream of map of documents records from the database. Each key of the returned map is a path to a document of a collection with a id collectionID.

  • collectionID The id to the collection. e.g - "menuItems" - "orders" - etc...
  • filters The filter that will be applied on each record of the collection.
  • limit The maximum number of document to return. this integer must be greater than 0. Otherwise (if limit is not specified or limit is lower or equal to 0), all requested data will be returned.

Implementation

Stream<Map<String, Map<dynamic, dynamic>>?> watchCollectionGroup(
  String collectionID, {
  List<DocumentQuery> filters,
  int? limit,
  DocumentOrderBy? orderBy,
});