Skip to content

Commit 674c4e5

Browse files
DOCSP-24216 aggregation update (#1584)
1 parent aceff30 commit 674c4e5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

source/includes/aggregation-pipeline-introduction.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,15 @@ An aggregation pipeline consists of one or more :ref:`stages
99
stage.
1010

1111
- An aggregation pipeline can return results for groups of documents.
12-
For example, return the total, average, maximum, and minimum values.
12+
For example, return the total, average, maximum, and minimum values.
13+
14+
Starting in MongoDB 4.2, you can update documents with an aggregation
15+
pipeline if you use the stages shown in
16+
: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)