Skip to content

Commit c395217

Browse files
committed
remove extra example
1 parent 2f30a87 commit c395217

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

source/crud/update.txt

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -251,31 +251,8 @@ existing document in the ``restaurants`` collection. Select the
251251

252252
Documents updated: 1
253253

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-
277254
Update Multiple Documents Example: Full File
278-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
255+
--------------------------------------------
279256

280257
.. include:: /includes/usage-examples/example-intro.rst
281258

0 commit comments

Comments
 (0)