diff --git a/source/reference/method/db.collection.update.txt b/source/reference/method/db.collection.update.txt index 202657a6c3b..8454f354236 100644 --- a/source/reference/method/db.collection.update.txt +++ b/source/reference/method/db.collection.update.txt @@ -477,6 +477,16 @@ Given a ``books`` collection that includes the following documents: "item" : "Monarchia", "price" : 14 } + { + "_id" : 44, + "author" : "Tabucchi", + "born" : "Pisa" + } + { + "_id" : 55, + "item" : "Codex Urbinas", + "price" : 12 + } The following command uses the ``multi`` parameter to update all documents where ``author`` is ``"Dante"`` and uses the *upsert*