Details
-
Bug
-
Status: Closed
-
Trivial - P5
-
Resolution: Done
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/update/inc/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/update/inc
-
0
Description
The documentation says:
"The following update() operation uses the $inc operator to decrease the quantity field by -2 and increase the "metrics.orders" field by 1:"
To be precise, the $inc operator decreases the quantity field by positive 2, rather than negative 2.