Skip to content

Commit 4deb3c3

Browse files
authored
DOCS-16612 Add minN to Agg Operators (#6106) (#6174)
* DOCS-16612 Add to agg operators * * * * * *
1 parent 73ecb37 commit 4deb3c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/includes/extracts-agg-operators.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,18 @@ content: |
11381138
11391139
Available in the :pipeline:`$setWindowFields` stage.
11401140
1141+
* - :group:`$minN`
1142+
1143+
- Returns an aggregation of the ``n`` minimum valued elements
1144+
in a group.
1145+
Distinct from the :expression:`$minN` array operator.
1146+
1147+
.. versionadded:: 5.2
1148+
1149+
Available in :pipeline:`$group`,
1150+
:pipeline:`$setWindowFields`
1151+
and as an :ref:`expression <aggregation-expressions>`.
1152+
11411153
* - :group:`$push`
11421154
11431155
- Returns an array of expression values for documents in each

0 commit comments

Comments
 (0)