Skip to content

Commit f8b1598

Browse files
ianf-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14394 Add 64-bit integer limit notes to and pages
1 parent a91c44c commit f8b1598

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

source/reference/operator/aggregation/limit.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
3036
Behavior
3137
--------
3238

source/reference/operator/aggregation/skip.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
3137
Behavior
3238
--------
3339

source/release-notes/5.0-compatibility.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,18 @@ operand expression ( ``{ }`` ):
227227
An empty update results in no changes and no :term:`oplog` entry is
228228
created (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

0 commit comments

Comments
 (0)