[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 |
||
| 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: array doesn't have to exist Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Githook User [ 18/May/14 ] |
|
Author: {u'username': u'asya999', u'name': u'Asya Kamsky', u'email': u'asya999@gmail.com'}Message: Removed "existing" where it wasn't appropriate, also $min and $max were both backwards. Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Asya Kamsky [ 17/May/14 ] |
|
In fact, the docs correctly document $min (as an example) as:
Short descriptions should be adjusted to match. |