From 9d8977a50da39ccbaef6bd099a6999f3c869760e Mon Sep 17 00:00:00 2001 From: Asya Kamsky Date: Mon, 7 Apr 2014 11:46:41 -0700 Subject: [PATCH] fixed backwards update syntax as it was - not legal update expression. --- source/reference/command/update.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/command/update.txt b/source/reference/command/update.txt index f2d843f90d7..5d49f27275f 100644 --- a/source/reference/command/update.txt +++ b/source/reference/command/update.txt @@ -62,7 +62,7 @@ If the ```` document contains all :ref:`update operator { $set: { status: "D" }, - quantity: { $inc: 2 } + $inc: { quantity: 2 } } Then, the :dbcommand:`update` command updates only the corresponding