Skip to content

Commit 1212eea

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

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
@@ -229,14 +229,18 @@ Definition
229229

230230

231231
:returns:
232-
A :term:`cursor` to the documents produced by the final stage of
233-
the aggregation pipeline operation, or if you include the
234-
``explain`` option, the document that provides
235-
details on the processing of the aggregation operation.
236-
237-
If the pipeline includes the :pipeline:`$out` operator,
238-
:method:`~db.collection.aggregate()` returns an empty cursor. See
239-
:pipeline:`$out` for more information.
232+
This method returns:
233+
234+
- A :term:`cursor` for the documents produced by the final stage of
235+
the aggregation pipeline.
236+
237+
- If the pipeline includes the ``explain`` option, the query returns
238+
a document that provides details on the processing of the
239+
aggregation operation.
240+
241+
- If the pipeline includes the :pipeline:`$out` or
242+
:pipeline:`$merge` operators, the query returns an empty cursor.
243+
240244

241245
Behavior
242246
--------

0 commit comments

Comments
 (0)