Skip to content

Commit aefdfd0

Browse files
authored
DOCS-16612 Add minN to Agg Operators (#6106)
* DOCS-16612 Add to agg operators * * * * * *
1 parent 2deb39c commit aefdfd0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/includes/extracts-agg-operators.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,19 @@ content: |
11331133
11341134
Available in the :pipeline:`$setWindowFields` stage.
11351135
1136+
* - :group:`$minN`
1137+
1138+
- Returns an aggregation of the ``n`` minimum valued elements
1139+
in a group.
1140+
Distinct from the :expression:`$minN` array operator.
1141+
1142+
.. versionadded:: 5.2
1143+
1144+
Available in :pipeline:`$group`,
1145+
:pipeline:`$setWindowFields`
1146+
and as an :ref:`expression <aggregation-expressions>`.
1147+
1148+
11361149
* - :group:`$percentile`
11371150
- .. include:: /includes/aggregation/fact-return-percentile.rst
11381151

0 commit comments

Comments
 (0)