Sum and Average in Firestore | Leverage getAggregateFromServer in the Latest Update November 2023
In the recent update in November 2023, Firestore introduced two additional functions, sum() and average(), along with the getAggregateFromServer() method.