We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde8b94 commit 1c52facCopy full SHA for 1c52fac
source/tutorial/modify-documents.txt
@@ -26,15 +26,15 @@ with the ``multi`` option set to ``true`` to update multiple documents.
26
27
The following example finds all documents with ``type`` equal to
28
``"book"`` and modifies their ``qty`` field by ``-1``. The example uses
29
-:update:`$inc`, which is one of the:ref:`update operators
+:update:`$inc`, which is one of the :ref:`update operators
30
<update-operators>` available.
31
32
.. code-block:: javascript
33
34
- db.inventory.update(
+ db.inventory.update(
35
{ type : "book" },
36
{ $inc : { qty : -1 } },
37
- { multi: true }
+ { multi: true }
38
)
39
40
For more examples, see :method:`~db.collection.update()`.
0 commit comments