File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -251,31 +251,8 @@ existing document in the ``restaurants`` collection. Select the
251
251
252
252
Documents updated: 1
253
253
254
- UpdateMany() Example
255
- --------------------
256
-
257
- The following example uses the ``listingsAndReviews`` collection in the
258
- ``sample_airbnb`` dataset from the :atlas:`Atlas sample datasets </sample-data/sample-airbnb>`.
259
-
260
- The following example uses the ``UpdateMany()`` method to:
261
-
262
- - Match documents in which the value of the ``address.market`` field is ``"Sydney"``.
263
- - Multiply the ``price`` value in the matched documents by ``1.15``
264
-
265
- .. literalinclude:: /includes/usage-examples/code-snippets/updateMany.go
266
- :start-after: begin updatemany
267
- :end-before: end updatemany
268
- :emphasize-lines: 9
269
- :language: go
270
- :copyable:
271
- :dedent:
272
-
273
- The update operation updates ``609`` documents.
274
-
275
- To learn more about how to retrieve multiple documents, see :ref:`golang-find-example`.
276
-
277
254
Update Multiple Documents Example: Full File
278
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
255
+ --------------------------------------------
279
256
280
257
.. include:: /includes/usage-examples/example-intro.rst
281
258
You can’t perform that action at this time.
0 commit comments