From 71ec9f0aac1116925bbb95fef672826ce134bdad Mon Sep 17 00:00:00 2001 From: kay Date: Wed, 19 Sep 2012 13:28:46 -0400 Subject: [PATCH] DOCS-505 update api change --- source/reference/method/db.collection.update.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/reference/method/db.collection.update.txt b/source/reference/method/db.collection.update.txt index 8da17523b29..bb7ccd01345 100644 --- a/source/reference/method/db.collection.update.txt +++ b/source/reference/method/db.collection.update.txt @@ -8,7 +8,7 @@ db.collection.update() .. versionchanged:: 2.2 The :program:`mongo` shell adds an updated interface that - accepts an parameters in more clear :term:`document` form to + accepts parameters in a more clear :term:`document` form to specify ``multi`` and ``upsert`` options. The :method:`update() ` method provides the ability to @@ -191,4 +191,4 @@ db.collection.update() .. code-block:: javascript - db.products.update( { item: "magazine", qty: { $gt: 5 } }, { $set: { x: 25, y: 50 } }, { upsert: true } ) + db.products.update( { item: "magazine", qty: { $gt: 5 } }, { $set: { x: 25, y: 50 } }, true )