Skip to content

Commit 2f87409

Browse files
authored
DOCS-11263 updated batchSize to link to the correct command (#3731) (#4014)
* DOCS-11263 updated batchSize to link to the correct command * spacing issue * resolving comments * format issues * more formatting issues * hash mark issues
1 parent 8b51c90 commit 2f87409

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
@@ -460,11 +460,12 @@ To specify an *initial* batch size, specify the ``batchSize`` in the
460460
)
461461

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

469470
Specify a Collation
470471
~~~~~~~~~~~~~~~~~~~

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

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

455454
.. include:: /includes/note-mongo-shell-automatically-iterates-cursor.rst
456455

0 commit comments

Comments
 (0)