Skip to content

Commit a6c5626

Browse files
committed
CC suggestions
(cherry picked from commit 4b1f10b) (cherry picked from commit 76079d4)
1 parent 3076915 commit a6c5626

File tree

3 files changed

+56
-37
lines changed

3 files changed

+56
-37
lines changed

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ by calling the ``find()`` or ``findOne()`` method.
2121

2222
.. tip:: Interactive Lab
2323

24-
You can complete an interactive lab that uses the
25-
``find()`` method to retrieve data in the
26-
:ref:`node-retrieve-instruqt-lab` section of this guide.
24+
You can complete a short interactive lesson that demonstrates how to
25+
retrieve data by using the ``find()`` method in an in-browser coding
26+
experience. To learn more, see the :ref:`node-retrieve-instruqt-lab`
27+
section of this guide.
2728

2829
You can also further specify the information that the find operation
2930
returns by specifying optional parameters or by chaining other methods,
@@ -52,8 +53,8 @@ matching data is inserted.
5253
.. include:: /includes/fact-atlas-compatible.rst
5354
.. include:: /includes/fact-atlas-link.rst
5455

55-
Find
56-
----
56+
Find Documents
57+
--------------
5758

5859
You can call the ``find()`` method on a ``Collection`` object. The
5960
method accepts a query document that describes the documents you want to
@@ -129,8 +130,8 @@ matching document or ``null`` if there are no matches.
129130
See the :ref:`find() <node-usage-find>` and :ref:`findOne()
130131
<node-usage-findone>` for fully-runnable examples.
131132

132-
Aggregate
133-
---------
133+
Aggregate Data from Documents
134+
-----------------------------
134135

135136
If you want to run a custom processing pipeline to retrieve data from your
136137
database, you can use the ``aggregate()`` method. This method accepts
@@ -173,8 +174,8 @@ for more information on how to construct an aggregation pipeline.
173174

174175
.. _node-fundamentals-watch:
175176

176-
Watch / Subscribe
177-
-----------------
177+
Monitor Data Changes
178+
--------------------
178179

179180
You can use the ``watch()`` method to monitor a collection for changes to
180181
a collection that match certain criteria. These changes include inserted,
@@ -200,11 +201,16 @@ the :ref:`change streams <node-usage-watch>` usage example.
200201

201202
.. _node-retrieve-instruqt-lab:
202203

203-
Interactive Find Operation Lab
204+
Complete an Interactive Lesson
204205
------------------------------
205206

206207
This lab helps you understand how to perform read operations in MongoDB
207-
by using the ``find()`` method. You can complete this lab without
208-
installing MongoDB or a code editor.
208+
by using the ``find()`` method. You can complete this lab directly in
209+
your browser window without installing MongoDB or a code editor.
210+
211+
.. tip::
212+
213+
To expand the lab to a full-screen format, click the full-screen
214+
button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
209215

210216
.. instruqt:: /mongodb-docs/tracks/find-node?token=em_OVNHWCPNPMLwNOCm

source/fundamentals/crud/write-operations/insert.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ operations:
2929
- ``bulkWrite()``
3030

3131
.. tip:: Interactive Lab
32-
33-
You can complete an interactive lab that uses the
34-
``insertOne()`` method to insert data in the
35-
:ref:`node-insert-instruqt-lab` section of this guide.
32+
33+
You can complete a short interactive lesson that demonstrates how to
34+
insert data by using the ``insertOne()`` method in an in-browser coding
35+
experience. To learn more, see the :ref:`node-insert-instruqt-lab`
36+
section of this guide.
3637

3738
The following sections focus on ``insertOne()`` and ``insertMany()``. For an
3839
example on how to use the ``bulkWrite()`` method, see our runnable :doc:`Bulk
@@ -224,11 +225,16 @@ section, see the following resources:
224225

225226
.. _node-insert-instruqt-lab:
226227

227-
Interactive Insert Operation Lab
228-
--------------------------------
228+
Complete an Interactive Lesson
229+
------------------------------
229230

230231
This lab helps you understand how to perform insert operations in MongoDB
231-
by using the ``insertOne()`` method. You can complete this lab without
232-
installing MongoDB or a code editor.
232+
by using the ``insertOne()`` method. You can complete this lab directly in
233+
your browser window without installing MongoDB or a code editor.
234+
235+
.. tip::
236+
237+
To expand the lab to a full-screen format, click the full-screen
238+
button, :guilabel:`⛶`, in the lower-right corner of the lab pane.
233239

234240
.. instruqt:: /mongodb-docs/tracks/insert-node?token=em_S6rjcmIzxGB4Sz_y

source/fundamentals/crud/write-operations/modify.txt

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ Modify Documents
1313
Overview
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

2223
The {+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

3941
To perform an update to one or more documents, create an **update
4042
document** 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

141143
To perform a replacement operation, create a **replacement document** that
142144
consists 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

218220
This 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

Comments
 (0)