Accumulators
push(field)
Pushes the value of the selected field from a group into an array.
pushU(field)
Pushes only the unique value of the selected field from a group into an array.
pushUC(field)
Pushes only the unique value of the selected field from a group into an array in a cumulative way.
average(field)
Returns the average of the values of the selected field from a group.
averageC(field)
Returns the average of the values of the selected field from a group in a cumulative way.
sum(field)
Returns the sum of the values of the selected field from a group.
sumC(field)
Returns the sum of the values of the selected field from a group in a cumulative way.
max(field)
Returns the maximum value of the selected field from a group.
min(field)
Returns the minimum value of the selected field from a group.
first(sort, order)
Returns the first document from a group. The group can be either sorted or not.
Last updated
Was this helpful?