watchCollection abstract method
Stream<Map<String, Map> ?>
watchCollection(
- String collectionPath, {
- List<
DocumentQuery> filters, - int? limit,
- DocumentOrderBy? orderBy,
Returns a Stream of map of documents records from the database.
collectionPathThe path to the collection. e.g - "restaurants" - "restaurants/{restaurantId}/menuItems" - etc...filtersThe filter that will be applied on each record of the collection.limitThe 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>>?> watchCollection(
String collectionPath, {
List<DocumentQuery> filters,
int? limit,
DocumentOrderBy? orderBy,
});