Skip to content

Commit 1263d30

Browse files
committed
Address technical feedback
1 parent 6d8bfc7 commit 1263d30

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/includes/write/bulk-write.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ public static void main(String[] args) throws InterruptedException {
6767

6868
// start-bulk-replace-one
6969
ReplaceOneModel<Document> operation = new ReplaceOneModel<>(
70-
eq("restaurant_id", "1234"),
71-
new Document("name", "Mongo's Pizza"));
70+
eq("name", "Original Pizza"),
71+
new Document("name", "Mongo's Pizza")
72+
.append("borough", "Manhattan"));
7273
// end-bulk-replace-one
7374

7475
// start-bulk-delete-one
@@ -98,7 +99,7 @@ public static void main(String[] args) throws InterruptedException {
9899

99100
BulkWriteResult bulkResult = Mono.from(bulkWritePublisher).block();
100101

101-
System.out.printf(bulkResult.toString());
102+
System.out.println(bulkResult.toString());
102103
// end-bulk-write-mixed
103104

104105
// start-bulk-write-unordered
@@ -119,7 +120,7 @@ public static void main(String[] args) throws InterruptedException {
119120

120121
BulkWriteResult bulkResult = Mono.from(bulkWritePublisher).block();
121122

122-
System.out.printf(bulkResult.toString());
123+
System.out.println(bulkResult.toString());
123124
// end-bulk-write-unordered
124125

125126
}

0 commit comments

Comments
 (0)