Skip to content

Commit 3cac5fb

Browse files
authored
DOCS-15512 Adds $merge to db.collection.aggregate return (#2376)
* DOCS-15512 Adds to db.collection.aggregate return * Fixes per Sarah Olsen * Fixes per Joe
1 parent a66f7d2 commit 3cac5fb

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,18 @@ Definition
223223

224224

225225
:returns:
226-
A :term:`cursor` to the documents produced by the final stage of
227-
the aggregation pipeline operation, or if you include the
228-
``explain`` option, the document that provides
229-
details on the processing of the aggregation operation.
230-
231-
If the pipeline includes the :pipeline:`$out` operator,
232-
:method:`~db.collection.aggregate()` returns an empty cursor. See
233-
:pipeline:`$out` for more information.
226+
This method returns:
227+
228+
- A :term:`cursor` for the documents produced by the final stage of
229+
the aggregation pipeline.
230+
231+
- If the pipeline includes the ``explain`` option, the query returns
232+
a document that provides details on the processing of the
233+
aggregation operation.
234+
235+
- If the pipeline includes the :pipeline:`$out` or
236+
:pipeline:`$merge` operators, the query returns an empty cursor.
237+
234238

235239
Behavior
236240
--------

0 commit comments

Comments
 (0)