File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 3636 puts "#{ many_result . modified_count } document(s) updated."
3737 # end-update-many
3838
39+ # Performs an update operation with the upsert option enabled
3940 # start-update-options
4041 filter = { 'name' => 'Sunrise Pizzeria' }
4142
Original file line number Diff line number Diff line change 7575 .. input:: /includes/write/update.rb
7676 :start-after: start-update-one
7777 :end-before: end-update-one
78- :emphasize-lines: 3
7978 :language: ruby
8079 :dedent:
8180
@@ -98,7 +97,6 @@ in which the ``name`` field value is ``"Starbucks"``. The update document uses t
9897 .. input:: /includes/write/update.rb
9998 :start-after: start-update-many
10099 :end-before: end-update-many
101- :emphasize-lines: 3
102100 :language: ruby
103101 :dedent:
104102
@@ -184,7 +182,6 @@ doesn't match any existing documents.
184182 :start-after: start-update-options
185183 :end-before: end-update-options
186184 :language: ruby
187- :emphasize-lines: 2
188185 :dedent:
189186
190187 .. output::
You can’t perform that action at this time.
0 commit comments