Skip to content

Commit 2adb373

Browse files
authored
DOCSP-37359: Instruqt rST updates (#179)
1 parent 4cc4763 commit 2adb373

File tree

3 files changed

+40
-66
lines changed

3 files changed

+40
-66
lines changed

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

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ data from a MongoDB collection by using read operations. You can call the
2626

2727
.. tip:: Interactive Lab
2828

29-
You can complete a short interactive lesson that demonstrates how to
30-
retrieve data by using the ``Find()`` method in an in-browser coding
31-
experience. To learn more, see the :ref:`csharp-retrieve-instruqt-lab`
32-
section of this guide.
29+
This page includes a short interactive lab that demonstrates how to
30+
retrieve data by using the ``Find()`` method. You can complete this lab
31+
directly in your browser window without installing MongoDB or a code editor.
32+
33+
To start the lab, click the :guilabel:`Open Interactive Tutorial` button at the
34+
top of the page. To expand the lab to a full-screen format, click the
35+
full-screen button (:guilabel:`⛶`) in the top-right corner of the lab pane.
3336

3437
Sample Data
3538
~~~~~~~~~~~
@@ -260,24 +263,6 @@ This example performs the following actions:
260263
`Dispose() <https://learn.microsoft.com/en-us/dotnet/api/system.idisposable.dispose?view=net-7.0>`__
261264
method once the cursor is no longer in use.
262265

263-
.. _csharp-retrieve-instruqt-lab:
264-
265-
Complete an Interactive Lesson
266-
------------------------------
267-
268-
This lab helps you understand how to use the {+driver-short+} to perform
269-
read operations in MongoDB by using the ``Find()`` method. You can
270-
complete this lab directly in your browser window without installing
271-
MongoDB or a code editor.
272-
273-
.. tip::
274-
275-
To expand the lab to a full-screen format, click the full-screen
276-
button, :guilabel:`⛶`, in the bottom right corner of the lab pane.
277-
278-
.. instruqt:: /mongodb-docs/tracks/find-csharp?token=em_R1T7ZloiDGciGxye
279-
:title: Find() Lesson
280-
281266
.. _csharp-retrieve-additional-information:
282267

283268
Additional Information
@@ -304,3 +289,9 @@ guide, see the following API Documentation:
304289
- `ToListAsync() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IAsyncCursorSourceExtensions.FirstOrDefaultAsync.html>`__
305290
- `ToCursor() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IAsyncCursorSource-1.ToCursor.html>`__
306291
- `ToCursorAsync() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IAsyncCursorSource-1.ToCursorAsync.html>`__
292+
293+
.. _csharp-retrieve-instruqt-lab:
294+
295+
.. instruqt:: /mongodb-docs/tracks/find-csharp?token=em_R1T7ZloiDGciGxye
296+
:title: Find() Lesson
297+
:drawer:

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

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ operations, each of which has an asynchronous and synchronous version:
3131
- ``InsertManyAsync()`` or ``InsertMany()``
3232

3333
.. tip:: Interactive Lab
34+
35+
This page includes a short interactive lab that demonstrates how to
36+
insert data by using the ``InsertOneAsync()`` method. You can complete this
37+
lab directly in your browser window without installing MongoDB or a code editor.
3438

35-
You can complete a short interactive lesson that demonstrates how to
36-
insert data by using the ``InsertOneAsync()`` method in an in-browser coding
37-
experience. To learn more, see the :ref:`csharp-insert-instruqt-lab`
38-
section of this guide.
39+
To start the lab, click the :guilabel:`Open Interactive Tutorial` button at the
40+
top of the page. To expand the lab to a full-screen format, click the
41+
full-screen button (:guilabel:`⛶`) in the top-right corner of the lab pane.
3942

4043
Sample Data
4144
~~~~~~~~~~~
@@ -265,23 +268,6 @@ If you look inside your collection, you should be able to see the following docu
265268
{ "_id" : 2, "name" : "Restaurant B" }
266269
{ "_id" : 3, "name" : "Restaurant D" }
267270

268-
.. _csharp-insert-instruqt-lab:
269-
270-
Complete an Interactive Lesson
271-
------------------------------
272-
273-
This lab helps you understand how to use the {+driver-short+} to perform insert operations in MongoDB
274-
by using the ``InsertOneAsync()`` method. You can complete this lab directly in
275-
your browser window without installing MongoDB or a code editor.
276-
277-
.. tip::
278-
279-
To expand the lab to a full-screen format, click the full-screen
280-
button, :guilabel:`⛶`, in the bottom right corner of the lab pane.
281-
282-
.. instruqt:: /mongodb-docs/tracks/insert-a-document---c-net-driver?token=em__BF-Ccd2b1dS3YLi
283-
:title: InsertOneAsync() Lesson
284-
285271
.. _additional-info:
286272

287273
Additional Information
@@ -311,4 +297,10 @@ guide, see the following API Documentation:
311297
- `InsertMany() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IMongoCollection-1.InsertMany.html>`__
312298
- `InsertManyAsync() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IMongoCollection-1.InsertManyAsync.html>`__
313299
- `InsertOneOptions <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.InsertOneOptions.html>`__
314-
- `InsertManyOptions <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.InsertManyOptions.html>`__
300+
- `InsertManyOptions <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.InsertManyOptions.html>`__
301+
302+
.. _csharp-insert-instruqt-lab:
303+
304+
.. instruqt:: /mongodb-docs/tracks/insert-a-document---c-net-driver?token=em__BF-Ccd2b1dS3YLi
305+
:title: InsertOneAsync() Lesson
306+
:drawer:

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

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ each of which has an asynchronous and synchronous version:
3434
- ``ReplaceOneAsync()`` or ``ReplaceOne()``
3535

3636
.. tip:: Interactive Lab
37+
38+
This page includes a short interactive lab that demonstrates how to
39+
modify data by using the ``UpdateManyAsync()`` method. You can complete this
40+
lab directly in your browser window without installing MongoDB or a code editor.
3741

38-
You can complete a short interactive lesson that demonstrates how to
39-
modify data by using the ``UpdateManyAsync()`` method in an in-browser coding
40-
experience. To learn more, see the :ref:`csharp-update-instruqt-lab`
41-
section of this guide.
42+
To start the lab, click the :guilabel:`Open Interactive Tutorial` button at the
43+
top of the page. To expand the lab to a full-screen format, click the
44+
full-screen button (:guilabel:`⛶`) in the top-right corner of the lab pane.
4245

4346
Sample Data
4447
~~~~~~~~~~~
@@ -495,24 +498,6 @@ match any existing documents.
495498
Replaced documents: 1
496499
Result acknowledged? True
497500

498-
.. _csharp-update-instruqt-lab:
499-
500-
Complete an Interactive Lesson
501-
------------------------------
502-
503-
This lab helps you understand how to use the {+driver-short+} to perform
504-
update operations in MongoDB by using the ``UpdateManyAsync()`` method.
505-
You can complete this lab directly in your browser window without
506-
installing MongoDB or a code editor.
507-
508-
.. tip::
509-
510-
To expand the lab to a full-screen format, click the full-screen
511-
button, :guilabel:`⛶`, in the bottom right corner of the lab pane.
512-
513-
.. instruqt:: /mongodb-docs/tracks/update-a-document---c-net-driver?token=em_69t_l-j0BC_en7Uy
514-
:title: UpdateManyAsync() Lesson
515-
516501
.. _csharp-change-info:
517502

518503
Additional Information
@@ -543,3 +528,9 @@ guide, see the following API documentation:
543528
* `ReplaceOneAsync() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IMongoCollection-1.ReplaceOneAsync.html>`__
544529
* `ReplaceOptions <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.ReplaceOptions.html>`__
545530
* `ReplaceOneResult <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.ReplaceOneResult.html>`__
531+
532+
.. _csharp-update-instruqt-lab:
533+
534+
.. instruqt:: /mongodb-docs/tracks/update-a-document---c-net-driver?token=em_69t_l-j0BC_en7Uy
535+
:title: UpdateManyAsync() Lesson
536+
:drawer:

0 commit comments

Comments
 (0)