File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ public static void main(String[] args) throws InterruptedException {
67
67
68
68
// start-bulk-replace-one
69
69
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" ));
72
73
// end-bulk-replace-one
73
74
74
75
// start-bulk-delete-one
@@ -98,7 +99,7 @@ public static void main(String[] args) throws InterruptedException {
98
99
99
100
BulkWriteResult bulkResult = Mono .from (bulkWritePublisher ).block ();
100
101
101
- System .out .printf (bulkResult .toString ());
102
+ System .out .println (bulkResult .toString ());
102
103
// end-bulk-write-mixed
103
104
104
105
// start-bulk-write-unordered
@@ -119,7 +120,7 @@ public static void main(String[] args) throws InterruptedException {
119
120
120
121
BulkWriteResult bulkResult = Mono .from (bulkWritePublisher ).block ();
121
122
122
- System .out .printf (bulkResult .toString ());
123
+ System .out .println (bulkResult .toString ());
123
124
// end-bulk-write-unordered
124
125
125
126
}
You can’t perform that action at this time.
0 commit comments