[DOCS-3421] Comment on the word "existing" in "manual/reference/operator/update.txt" Created: 17/May/14  Updated: 03/Nov/17  Resolved: 18/May/14

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/operator/update/#id1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/command/update/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/operator/update


Participants:
Days since reply: 9 years, 39 weeks, 3 days ago

 Description   

"an existing document" phrase appears multiple times, but I don't think it's accurate.

$set will set a field in an upserted document just the same as existing document.

$min and $max do not require the field to exist, and are also phrased backwards.

$addToSet does not require the array to exist.



 Comments   
Comment by Githook User [ 18/May/14 ]

Author:

{u'username': u'asya999', u'name': u'Asya Kamsky', u'email': u'asya999@gmail.com'}

Message: DOCS-3421

array doesn't have to exist

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/52f73ad470dd75368e93446356ae85ee286e4442

Comment by Githook User [ 18/May/14 ]

Author:

{u'username': u'asya999', u'name': u'Asya Kamsky', u'email': u'asya999@gmail.com'}

Message: DOCS-3421

Removed "existing" where it wasn't appropriate, also $min and $max were both backwards.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/cae6cfdcf0594384ac58cf5c942a29c1e1d4bd93

Comment by Asya Kamsky [ 17/May/14 ]

In fact, the docs correctly document $min (as an example) as:

The $min updates the value of the field to a specified value if the specified value is less than the current value of the field.

Short descriptions should be adjusted to match.

Generated at Thu Feb 08 07:45:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.