Skip to content

Commit c61c4ed

Browse files
committed
wip
1 parent bfb5468 commit c61c4ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/includes/write/client-bulk-write.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ fun main() {
4343
val restaurantReplacement = ClientNamespacedWriteModel
4444
.replaceOne(
4545
MongoNamespace("sample_restaurants", "restaurants"),
46-
eq("_id", 1),
46+
Filters.eq("_id", 1),
4747
Restaurant("Smith Town Diner", "Brooklyn", "American")
4848
)
4949

5050
val movieReplacement = ClientNamespacedWriteModel
5151
.replaceOne(
5252
MongoNamespace("sample_mflix", "movies"),
53-
eq("_id", 1),
53+
Filters.eq("_id", 1),
5454
Movie("Loving Sylvie", 1999)
5555
)
5656
// end-replace-models
@@ -68,7 +68,7 @@ fun main() {
6868
ClientNamespacedWriteModel
6969
.replaceOne(
7070
movieNamespace,
71-
eq("_id", 1),
71+
Filters.eq("_id", 1),
7272
Movie("Underneath It All", 2002)
7373
)
7474
)

source/write/bulk-write.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ The following example creates an instance of ``DeleteManyModel``:
227227
.. _kotlin-sync-bulkwrite-method:
228228

229229
Perform the Bulk Operation
230-
--------------------------
230+
~~~~~~~~~~~~~~~~~~~~~~~~~~
231231

232232
After you define a model instance for each operation you want to perform,
233233
pass a list of these instances to the ``bulkWrite()`` method.
@@ -263,7 +263,7 @@ operation that failed, and details about the exception.
263263
attempting all operations, regardless of execution order.
264264

265265
Customize Bulk Write Operation
266-
------------------------------
266+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
267267

268268
The ``bulkWrite()`` method optionally accepts a parameter which
269269
specifies options you can use to configure the bulk write

0 commit comments

Comments
 (0)