Skip to content

Commit f993919

Browse files
committed
lm feedback
1 parent bd6295a commit f993919

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

source/crud/insert.txt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ To learn how to use the ``BulkWrite()`` method, see the
3636

3737
.. _golang-insert-id:
3838

39-
The ``_id`` Field
40-
-----------------
39+
The _id Field
40+
-------------
4141

4242
In MongoDB, each document *must* contain a unique ``_id`` field.
4343

@@ -105,8 +105,8 @@ The following example creates and inserts a document into the
105105

106106
Inserted document with _id: ObjectID("...")
107107

108-
Modify ``InsertOne`` Behavior
109-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108+
Modify InsertOne() Behavior
109+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
110110
You can modify the behavior of ``InsertOne()`` by constructing and passing
111111
an optional ``InsertOneOptions`` struct. The available options to set with
112112
``InsertOneOptions`` are:
@@ -222,8 +222,8 @@ After running the preceding code, your output resembles the following:
222222
Inserted document with _id: ObjectID("...")
223223
Inserted document with _id: ObjectID("...")
224224

225-
Modify ``InsertMany`` Behavior
226-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
225+
Modify InsertMany() Behavior
226+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
227227

228228
You can modify the behavior of ``InsertMany()`` by constructing
229229
and passing an optional ``InsertManyOptions`` struct. The available options
@@ -260,8 +260,8 @@ Construct an ``InsertManyOptions`` as follows:
260260

261261
.. _golang-ordered-behavior:
262262

263-
``Ordered`` Behavior
264-
~~~~~~~~~~~~~~~~~~~~
263+
Ordered Behavior
264+
~~~~~~~~~~~~~~~~
265265

266266
Assume you want to insert the following documents:
267267

@@ -383,12 +383,6 @@ Select the :guilabel:`Struct` or :guilabel:`bson.D` tab to see the corresponding
383383
Additional Information
384384
----------------------
385385

386-
For runnable examples of the insert operations, see the following usage
387-
examples:
388-
389-
- :ref:`golang-insert-one`
390-
- :ref:`golang-insert-many`
391-
392386
To learn more about performing the operations mentioned, see the
393387
following guides:
394388

source/includes/usage-examples/code-snippets/insertOne.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"go.mongodb.org/mongo-driver/v2/mongo/options"
1313
)
1414

15-
// Defines the structure of a restaurant documen
15+
// Defines the structure of a restaurant document
1616
type Restaurant struct {
1717
Name string
1818
RestaurantId string `bson:"restaurant_id,omitempty"`

0 commit comments

Comments
 (0)