Skip to content

Commit cea114b

Browse files
authored
DOCS-11263 updated batchSize to link to the correct command (#3731) (#4023)
* DOCS-11263 updated batchSize to link to the correct command * spacing issue * resolving comments * format issues * more formatting issues * hash mark issues
1 parent dd95432 commit cea114b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/reference/command/aggregate.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,12 @@ To specify an *initial* batch size, specify the ``batchSize`` in the
439439
)
440440

441441
The ``{batchSize: 0 }`` document specifies the size of the *initial*
442-
batch size only. Specify subsequent batch sizes to :ref:`OP_GET_MORE
443-
<wire-op-get-more>` operations as with other MongoDB cursors. A
444-
``batchSize`` of ``0`` means an empty first batch and is useful if you
445-
want to quickly get back a cursor or failure message, without doing
446-
significant server-side work.
442+
batch size only. Specify subsequent batch sizes for future ``getMore`` operations
443+
with the ``batchSize`` parameter. Mongosh provides the :method:`~cursor.batchSize()`
444+
to specify the ``batchSize``. More information about this parameter can be found
445+
here: :dbcommand:`getMore` . A ``batchSize`` of ``0`` means
446+
an empty first batch and is useful if you want to quickly get back a cursor or
447+
failure message, without doing significant server-side work.
447448

448449
Specify a Collation
449450
~~~~~~~~~~~~~~~~~~~

source/reference/method/db.collection.aggregate.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@ For example, the following aggregation operation specifies the
451451
A ``batchSize`` of ``0`` means an empty
452452
first batch and is useful for quickly returning a cursor or failure
453453
message without doing significant server-side work. Specify subsequent
454-
batch sizes to :ref:`OP_GET_MORE <wire-op-get-more>` operations as with
455-
other MongoDB cursors.
454+
batch sizes for future ``getMore`` operations with :method:`~cursor.batchSize()`.
456455

457456
.. include:: /includes/note-mongo-shell-automatically-iterates-cursor.rst
458457

0 commit comments

Comments
 (0)