Skip to content

Commit 9214dba

Browse files
committed
dedent
1 parent d9950ee commit 9214dba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/write/bulk-write.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ The following example creates an instance of ``InsertOneModel``:
8181
:end-before: end-bulk-insert-one
8282
:language: kotlin
8383
:copyable:
84+
:dedent:
8485

8586
To insert multiple documents, create an instance of ``InsertOneModel``
8687
for each document.
@@ -113,6 +114,7 @@ The following example creates an instance of ``UpdateOneModel``:
113114
:end-before: end-bulk-update-one
114115
:language: kotlin
115116
:copyable:
117+
:dedent:
116118

117119
To update multiple documents, create an instance of ``UpdateManyModel`` and pass
118120
the same arguments as for ``UpdateOneModel``. The ``UpdateManyModel``
@@ -126,6 +128,7 @@ The following example creates an instance of ``UpdateManyModel``:
126128
:end-before: end-bulk-update-many
127129
:language: kotlin
128130
:copyable:
131+
:dedent:
129132

130133
Replace Operations
131134
~~~~~~~~~~~~~~~~~~
@@ -143,6 +146,7 @@ The following example creates an instance of ``ReplaceOneModel``:
143146
:end-before: end-bulk-replace-one
144147
:language: kotlin
145148
:copyable:
149+
:dedent:
146150

147151
To replace multiple documents, you must create an instance of
148152
``ReplaceOneModel`` for each document.
@@ -162,6 +166,7 @@ The following example creates an instance of ``DeleteOneModel``:
162166
:end-before: end-bulk-delete-one
163167
:language: kotlin
164168
:copyable:
169+
:dedent:
165170

166171
To delete multiple documents, create an instance of ``DeleteManyModel`` and pass a
167172
query filter specifying the document you want to delete. An instance of
@@ -175,6 +180,7 @@ The following example creates an instance of ``DeleteMany``:
175180
:end-before: end-bulk-delete-many
176181
:language: kotlin
177182
:copyable:
183+
:dedent:
178184

179185
.. _kotlin-sync-bulkwrite-method:
180186

@@ -195,6 +201,7 @@ The following example performs multiple write operations by using the
195201
:start-after: start-bulk-write-mixed
196202
:end-before: end-bulk-write-mixed
197203
:language: kotlin
204+
:dedent:
198205

199206
.. output::
200207

@@ -265,6 +272,7 @@ specify an unordered bulk write. Then, the example uses the
265272
:end-before: end-bulk-write-unordered
266273
:language: kotlin
267274
:copyable:
275+
:dedent:
268276

269277
If any of the write operations in an unordered bulk write fail, the {+driver-short+}
270278
reports the errors only after attempting all operations.

0 commit comments

Comments
 (0)