Skip to content

Commit 7ce19b7

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-24216 aggregation update (#1572) (#1583)
* DOCSP-24216-aggregation-update * DOCSP-24216-aggregation-update * DOCSP-24216-aggregation-update * DOCSP-24216-aggregation-update * DOCSP-24216-aggregation-update * DOCSP-24216-aggregation-update Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent c74fd8b commit 7ce19b7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

source/includes/aggregation-pipeline-introduction.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ An aggregation pipeline consists of one or more :ref:`stages
1111
- An aggregation pipeline can return results for groups of documents.
1212
For example, return the total, average, maximum, and minimum values.
1313

14-
Starting in MongoDB 4.2, you can also update documents with an
15-
aggregation pipeline. See
14+
Starting in MongoDB 4.2, you can update documents with an aggregation
15+
pipeline if you use the stages shown in
1616
:doc:`/tutorial/update-documents-with-aggregation-pipeline`.
17+
18+
.. note::
19+
20+
Aggregation pipelines run with the
21+
:method:`db.collection.aggregate()` method do not modify documents in
22+
a collection, unless the pipeline contains a :pipeline:`$merge` or
23+
:pipeline:`$out` stage.

0 commit comments

Comments
 (0)