You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/fundamentals/crud/write-operations/modify.txt
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,8 @@
1
1
.. _java-fundamentals-change-document:
2
2
3
-
=================
4
-
Change a Document
5
-
=================
6
-
7
-
.. default-domain:: mongodb
3
+
================
4
+
Modify Documents
5
+
================
8
6
9
7
.. contents:: On this page
10
8
:local:
@@ -15,7 +13,7 @@ Change a Document
15
13
Overview
16
14
--------
17
15
18
-
In this guide, you can learn how to change documents in a MongoDB
16
+
In this guide, you can learn how to modify documents in a MongoDB
19
17
collection using two distinct operation types:
20
18
21
19
- :ref:`Update <update-operation>`
@@ -44,7 +42,7 @@ current inventory:
44
42
Update
45
43
------
46
44
47
-
Update operations can change fields and values. They apply changes
45
+
Update operations can modify fields and values. They apply changes
48
46
specified in an update document to one or more documents that match your
49
47
query filter.
50
48
@@ -69,7 +67,7 @@ The ``updateOne()`` and ``updateMany()`` methods both have the following
69
67
parameters:
70
68
71
69
- ``query`` specifies a query filter with the criteria to match documents to update in your collection
72
-
- ``updateDocument`` specifies the fields and values to change in the matching document or documents. For this example, we use the :doc:`Updates builder </fundamentals/builders/updates>` to create the update document.
70
+
- ``updateDocument`` specifies the fields and values to modify in the matching document or documents. For this example, we use the :doc:`Updates builder </fundamentals/builders/updates>` to create the update document.
73
71
74
72
You can create the ``updateDocument`` using an ``Updates`` builder as
0 commit comments