Skip to content

Commit 5d3092d

Browse files
Docsp 15085 aggregations in updates (#192)
Co-authored-by: kyuan-mongodb <[email protected]>
1 parent 0b30dac commit 5d3092d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/fundamentals/crud/write-operations/change-a-document.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ and their usage </reference/operator/update-field/>`.
5959
The update operators apply only to the fields associated with them in your
6060
update document.
6161

62+
.. note:: Aggregation Pipelines in Update Operations
63+
64+
If you are using MongoDB Version 4.2 or later, you can use aggregation
65+
pipelines made up of a subset of aggregation stages in update operations. For
66+
more information on the aggregation stages MongoDB supports in
67+
aggregation pipelines used in update operations, see our tutorial on building
68+
:manual:`updates with aggregation pipelines </tutorial/update-documents-with-aggregation-pipeline/>`.
69+
70+
6271
Example
6372
~~~~~~~
6473

0 commit comments

Comments
 (0)