@@ -13,11 +13,12 @@ Modify Documents
1313Overview
1414--------
1515
16- You can modify documents in a MongoDB collection using **update**
17- and **replace** operations. Update operations change
18- specified fields in one or more documents and leave other fields and values
19- unchanged. Replace operations remove all fields except the ``_id`` field
20- in an existing document and substitute them with specified fields and values.
16+ You can modify documents in a MongoDB collection by using **update**
17+ and **replace** operations. Update operations modify the fields and
18+ values of a document while keeping other fields and values
19+ unchanged. Replace operations substitute all fields and values
20+ in an existing document with specified fields and values while keeping
21+ the ``_id`` field value unchanged.
2122
2223The {+driver-short+} provides the following methods to change documents:
2324
@@ -26,15 +27,16 @@ The {+driver-short+} provides the following methods to change documents:
2627- ``replaceOne()``
2728
2829.. tip:: Interactive Lab
29-
30- You can complete an interactive lab that uses the
31- ``updateMany()`` method to modify data in the
32- :ref:`node-update-instruqt-lab` section of this guide.
30+
31+ You can complete a short interactive lesson that demonstrates how to
32+ modify data by using the ``updateMany()`` method in an in-browser coding
33+ experience. To learn more, see the :ref:`node-update-instruqt-lab`
34+ section of this guide.
3335
3436.. _updateDocuments:
3537
36- Update
37- ------
38+ Update Documents
39+ ----------------
3840
3941To perform an update to one or more documents, create an **update
4042document** that specifies the **update operator** (the type of update to
@@ -135,8 +137,8 @@ for more information on :manual:`unique indexes </core/index-unique/>`.
135137.. _node-fundamentals-replaceone:
136138.. _replacementDocument:
137139
138- Replace
139- -------
140+ Replace a Document
141+ ------------------
140142
141143To perform a replacement operation, create a **replacement document** that
142144consists of the fields and values that you would like to use in your
@@ -212,11 +214,16 @@ for more information on :manual:`unique indexes </core/index-unique/>`.
212214
213215.. _node-update-instruqt-lab:
214216
215- Interactive Update Operation Lab
216- --------------------------------
217+ Complete an Interactive Lesson
218+ ------------------------------
217219
218220This lab helps you understand how to perform update operations in MongoDB
219- by using the ``updateMany()`` method. You can complete this lab without
220- installing MongoDB or a code editor.
221+ by using the ``updateMany()`` method. You can complete this lab directly in
222+ your browser window without installing MongoDB or a code editor.
223+
224+ .. tip::
225+
226+ To expand the lab to a full-screen format, click the full-screen
227+ button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
221228
222229.. instruqt:: /mongodb-docs/tracks/update-node?token=em_FEr9KfMh4WQ0VosU
0 commit comments