@@ -11,27 +11,28 @@ db.collection.update()
1111 accepts parameters in a more clear :term:`document` form to
1212 specify ``multi`` and ``upsert`` options.
1313
14- The :method:`update() <db.collection.update()>` method provides the ability to
15- modify an existing document in a collection.
14+ The :method:`update() <db.collection.update()>` method provides the
15+ ability to modify an existing document in a collection.
1616
1717 By default the :method:`update() <db.collection.update()>` method updates a
1818 single document. If you specify a ``multi`` update, the
1919 :method:`update() <db.collection.update()>` method will update all
2020 documents in the collection that match the query criteria. If you
2121 specify ``upsert``, the :method:`update() <db.collection.update()>`
2222 method will insert the document if no document matches the query
23- criteria, and preform a conventional update otherwise. The
24- operation has the following form:
23+ criteria; otherwise, it will perform a conventional update.
24+
25+ Before version 2.2, in the :program:`mongo` shell, ``upsert`` and
26+ ``multi`` were positional boolean options and the operation has the
27+ following form:
2528
2629 .. code-block:: javascript
2730
2831 db.collection.update(query, update, <upsert,> <multi>)
2932
30- Before version 2.0, in the :program:`mongo` shell, ``upsert`` and
31- ``multi`` were positional boolean options. Since version 2.2, the
32- :method:`update() <db.collection.update()>` method can *also* take an
33- ``options`` :term:`document` as a parameter to specify the
34- ``multi`` and the ``upsert`` options.
33+ Since version 2.2, the :method:`update() <db.collection.update()>`
34+ method can *also* take an ``options`` :term:`document` as a
35+ parameter to specify the ``multi`` and the ``upsert`` options.
3536
3637 The :method:`update() <db.collection.update()>` method takes the following
3738 parameters:
0 commit comments