invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.7k stars 2.21k forks source link

🐛 @react-native-firebase/firestore Need Sum in aggregation method #8027

Open Ganeshguru5 opened 1 month ago

Ganeshguru5 commented 1 month ago

Sum in aggregation of @react-native-firebase/firestore

In the firebase documentation. They detailed that they have the aggregation feature to sum a particular attribute of a document. But i cant found this method in @react-native-firebase/firestore. Instead everyone reccommends to fetch all data and sum the value using array-reduce method. I dont want to get 10 or 100 documents to obtain a single value. Those reads are unwanted.

github-actions[bot] commented 2 weeks ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.