File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
reference/operator/aggregation Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,17 @@ Definition
2222
2323 .. code-block:: javascript
2424
25- { $limit: <positive integer> }
25+ { $limit: <positive 64-bit integer> }
2626
2727 :pipeline:`$limit` takes a positive integer that specifies the
2828 maximum number of documents to pass along.
2929
30+ .. note::
31+
32+ Starting in MongoDB 5.0, the :pipeline:`$limit` pipeline aggregation
33+ has a 64-bit integer limit. Values passed to the pipeline which
34+ exceed this limit will return a invalid argument error.
35+
3036Behavior
3137--------
3238
Original file line number Diff line number Diff line change @@ -23,11 +23,17 @@ Definition
2323
2424 .. code-block:: javascript
2525
26- { $skip: <positive integer> }
26+ { $skip: <positive 64-bit integer> }
2727
2828 :pipeline:`$skip` takes a positive integer that specifies the
2929 maximum number of documents to skip.
3030
31+ .. note::
32+
33+ Starting in MongoDB 5.0, the :pipeline:`$skip` pipeline aggregation
34+ has a 64-bit integer limit. Values passed to the pipeline which
35+ exceed this limit will return a invalid argument error.
36+
3137Behavior
3238--------
3339
Original file line number Diff line number Diff line change @@ -227,6 +227,18 @@ operand expression ( ``{ }`` ):
227227An empty update results in no changes and no :term:`oplog` entry is
228228created (meaning that the operation is a no-op).
229229
230+ Aggregation Pipeline Operator Parameter Limits
231+ ----------------------------------------------
232+
233+ The following aggregation pipeline operators now have a 64-bit
234+ integer value maximum limit.
235+
236+ - :pipeline:`$sort`
237+ - :pipeline:`$limit`
238+
239+ If you pass a value that exceeds this limit, the pipeline returns an
240+ invalid argument error.
241+
230242``listDatabases`` Output Changes
231243--------------------------------
232244
You can’t perform that action at this time.
0 commit comments