Skip to content

Commit 90e97e7

Browse files
jocelyn-mendezJocelyn Mendez
andauthored
(DOCSP-10869) Note on Automatic Creation of Object ID (#267)
* (DOCSP-10869) Note on AutomaticCreation of Object ID * (DOCSP-10869) Note on AutomaticCreation of Object ID * (DOCSP-10869) Note on Automatic Creation of ObjectId * (DOCSP-10869) Note on Automatic Generation of ObjectId * (DOCSP-10869) Note on Automatic Generation of ObjectId Co-authored-by: Jocelyn Mendez <[email protected]>
1 parent 496ab4b commit 90e97e7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

source/documents/insert.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ To insert documents into your collection:
7979
{ "_id" : 8751, "title" : "The Banquet", "author" : "Dante", "copies" : 2 }
8080
]
8181

82+
.. note::
83+
84+
.. include:: /includes/fact-automatic-objectid.rst
85+
86+
8287
4. Click :guilabel:`Insert`.
8388

8489
.. tab:: Field-by-Field Editor
@@ -92,6 +97,10 @@ To insert documents into your collection:
9297
.. figure:: /images/compass/insert-document2.png
9398
:figwidth: 590px
9499

100+
.. note::
101+
102+
.. include:: /includes/fact-automatic-objectid.rst
103+
95104
Add New Fields
96105
~~~~~~~~~~~~~~
97106

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
If you do not provide an
2+
:manual:`ObjectId</reference/bson-types/#objectid>` in your document,
3+
|compass-short| automatically generates an ObjectId.

0 commit comments

Comments
 (0)