[FR] Add SUM
Functionality to AggregateQuerySnapshot
#1703
Labels
SUM
Functionality to AggregateQuerySnapshot
#1703
Feature proposal
Firebase Component: Firestore
Hello,
The Firestore C++ SDK currently supports only the
count()
method in thefirebase::firestore::AggregateQuerySnapshot
class but lacks asum()
method (andavg()
), which is essential for aggregating numeric fields across documents.Current State
The public functions of
AggregateQuerySnapshot
are:count()
is_valid()
operator=
)query()
Reference:
Flutter SDK Implications
This enhancement would also benefit the Flutter SDK, which relies on the Firestore C++ SDK for Windows platform support. For example, in the FlutterFire plugin, unsupported aggregation types like
sum
currently result in:Adding
sum()
to the C++ SDK would also benefit Flutter developers using Firestore on Windows.Benefits
Implementing a
sum()
method would:Looking forward to hearing thoughts and feedback!
Thanks,
The text was updated successfully, but these errors were encountered: