Aggregate
The aggregate method allows you to conduct multiple aggregations on a set of records with one operation. The supported aggregations are:
_count- equivalent to the Count API._sum- sum of a numeric field._avg- average of a numeric field._min- minimum value of a field._max- maximum value of a field.
You can also use where, orderBy, skip, and take to control what records are included in the aggregation.
Samples
- Interactive Sample
- Plain Code
Click here to pop out if the embed doesn't load an interactive terminal.
main.ts
Loading...