You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've identified a small documentation bug that could be confusing to other developers. In the "Use the sum() aggregation" section of the aggregation queries documentation, the example code for the sum aggregation is calling the getAverage() method instead of getSum().
It also occurs in the second example of this section where it shows that sum()aggregation considers all filters in the query and any limit clauses. It's worth to mention that i only saw this inconsistency in the dart/flutter example.
Description for the Issue
Hi, Firebase team!
I've identified a small documentation bug that could be confusing to other developers. In the "Use the
sum()aggregation" section of the aggregation queries documentation, the example code for the sum aggregation is calling thegetAverage()method instead ofgetSum().Reference:
sum()aggregation"Incorrect code
Correct code
For the example to work as expected, the method call should be
res.getSum("population").Suggested Correct Code:
It also occurs in the second example of this section where it shows that
sum()aggregation considers all filters in the query and any limit clauses. It's worth to mention that i only saw this inconsistency in the dart/flutter example.Thanks!