Supported aggregation functions. These functions operate on document fields to produce aggregate metrics. All functions operate on the current pipeline results (in-memory).
-
COUNT(value:'count') -
COUNT_DISTINCT(value:'count_distinct') -
SUM(value:'sum') -
AVG(value:'avg') -
MIN(value:'min') -
MAX(value:'max') -
FIRST(value:'first') -
LAST(value:'last') -
COLLECT(value:'collect') -
COLLECT_DISTINCT(value:'collect_distinct')