Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
*Location*: https://docs.mongodb.org/manual/reference/command/getLastError/#getLastError.n
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4
*Screen Resolution*: 2560 x 1440
*repo*: docs
*source*: reference/command/getLastError
*Location*: https://docs.mongodb.org/manual/reference/command/getLastError/#getLastError.n *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4 *Screen Resolution*: 2560 x 1440 *repo*: docs *source*: reference/command/getLastError
Description
"For an update operation, if the update operation results in no change to the document, such as setting the value of the field to its current value, the number of matched documents may be smaller than the number of documents actually modified. If the update includes the upsert:true option and results in the creation of a new document, n returns the number of documents inserted."
This doesn't make sense, should it read, "...the number of <modified> documents may be smaller then the number of documents actually <matched>.