@@ -31,11 +31,14 @@ operations, each of which has an asynchronous and synchronous version:
31
31
- ``InsertManyAsync()`` or ``InsertMany()``
32
32
33
33
.. 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.
34
38
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.
39
42
40
43
Sample Data
41
44
~~~~~~~~~~~
@@ -265,23 +268,6 @@ If you look inside your collection, you should be able to see the following docu
265
268
{ "_id" : 2, "name" : "Restaurant B" }
266
269
{ "_id" : 3, "name" : "Restaurant D" }
267
270
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
-
285
271
.. _additional-info:
286
272
287
273
Additional Information
@@ -311,4 +297,10 @@ guide, see the following API Documentation:
311
297
- `InsertMany() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IMongoCollection-1.InsertMany.html>`__
312
298
- `InsertManyAsync() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.IMongoCollection-1.InsertManyAsync.html>`__
313
299
- `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:
0 commit comments