@@ -9,7 +9,10 @@ MongoDB provides the following methods for inserting :ref:`documents
9
9
10
10
.. list-table::
11
11
:widths: 35 65
12
- :header-rows: 0
12
+ :header-rows: 1
13
+
14
+ * - Method
15
+ - Description
13
16
14
17
* - :method:`db.collection.insertOne()`
15
18
- Inserts a single :ref:`document <bson-document-format>` into a collection.
@@ -19,18 +22,23 @@ MongoDB provides the following methods for inserting :ref:`documents
19
22
collection.
20
23
21
24
If you use {+atlas+}, the fully managed service for MongoDB deployments
22
- in the cloud, you can use these methods to insert documents after
23
- :atlas:`connecting to your cluster </tutorial/connect-to-your-cluster>`.
24
- To learn more, see :atlas:`Insert and View a Document </tutorial/insert-data-into-your-cluster>`
25
- in the {+atlas+} documentation.
25
+ in the cloud, you can use these methods to insert documents after
26
+ you connect to your cluster.
27
+ To learn more, see the following resources in the
28
+ {+atlas+} documentation:
29
+
30
+ - :atlas:`Connect to Your Cluster
31
+ </tutorial/connect-to-your-cluster>`
32
+ - :atlas:`Insert and View a Document
33
+ </tutorial/insert-data-into-your-cluster>`
26
34
27
35
.. _additional-inserts:
28
36
29
37
Additional Methods for Inserts
30
38
------------------------------
31
39
32
- The following methods can also add new documents to a collection, including collections
33
- hosted in {+atlas+}:
40
+ The following methods can also add new documents to a collection,
41
+ including collections hosted in {+atlas+}:
34
42
35
43
- :method:`db.collection.updateOne()` when used with the ``upsert:
36
44
true`` option.
0 commit comments