Add support for thecount()function in Query to retrieve the count of documents matching a query without fetching the entire data. This will return an AggregateQuery which can be executed using get(AggregateSource). This feature significantly reduces network usage and Firestore read costs, especially for large datasets.
Add support for the
count()function in Query to retrieve the count of documents matching a query without fetching the entire data. This will return an AggregateQuery which can be executed usingget(AggregateSource). This feature significantly reduces network usage and Firestore read costs, especially for large datasets.