@@ -81,6 +81,7 @@ The following example creates an instance of ``InsertOneModel``:
81
81
:end-before: end-bulk-insert-one
82
82
:language: kotlin
83
83
:copyable:
84
+ :dedent:
84
85
85
86
To insert multiple documents, create an instance of ``InsertOneModel``
86
87
for each document.
@@ -113,6 +114,7 @@ The following example creates an instance of ``UpdateOneModel``:
113
114
:end-before: end-bulk-update-one
114
115
:language: kotlin
115
116
:copyable:
117
+ :dedent:
116
118
117
119
To update multiple documents, create an instance of ``UpdateManyModel`` and pass
118
120
the same arguments as for ``UpdateOneModel``. The ``UpdateManyModel``
@@ -126,6 +128,7 @@ The following example creates an instance of ``UpdateManyModel``:
126
128
:end-before: end-bulk-update-many
127
129
:language: kotlin
128
130
:copyable:
131
+ :dedent:
129
132
130
133
Replace Operations
131
134
~~~~~~~~~~~~~~~~~~
@@ -143,6 +146,7 @@ The following example creates an instance of ``ReplaceOneModel``:
143
146
:end-before: end-bulk-replace-one
144
147
:language: kotlin
145
148
:copyable:
149
+ :dedent:
146
150
147
151
To replace multiple documents, you must create an instance of
148
152
``ReplaceOneModel`` for each document.
@@ -162,6 +166,7 @@ The following example creates an instance of ``DeleteOneModel``:
162
166
:end-before: end-bulk-delete-one
163
167
:language: kotlin
164
168
:copyable:
169
+ :dedent:
165
170
166
171
To delete multiple documents, create an instance of ``DeleteManyModel`` and pass a
167
172
query filter specifying the document you want to delete. An instance of
@@ -175,6 +180,7 @@ The following example creates an instance of ``DeleteMany``:
175
180
:end-before: end-bulk-delete-many
176
181
:language: kotlin
177
182
:copyable:
183
+ :dedent:
178
184
179
185
.. _kotlin-sync-bulkwrite-method:
180
186
@@ -195,6 +201,7 @@ The following example performs multiple write operations by using the
195
201
:start-after: start-bulk-write-mixed
196
202
:end-before: end-bulk-write-mixed
197
203
:language: kotlin
204
+ :dedent:
198
205
199
206
.. output::
200
207
@@ -265,6 +272,7 @@ specify an unordered bulk write. Then, the example uses the
265
272
:end-before: end-bulk-write-unordered
266
273
:language: kotlin
267
274
:copyable:
275
+ :dedent:
268
276
269
277
If any of the write operations in an unordered bulk write fail, the {+driver-short+}
270
278
reports the errors only after attempting all operations.
0 commit comments