Skip to content

Commit 69e5d69

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

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
@@ -221,14 +221,18 @@ Definition
221221

222222

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

233237
Behavior
234238
--------

0 commit comments

Comments
 (0)