[DOCS-2345] Point out the two uses of update earlier in the docs Created: 04/Dec/13 Updated: 11/Jan/17 Resolved: 23/Jan/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Joanna Cheng | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 4 weeks ago |
| Description |
|
http://docs.mongodb.org/manual/reference/method/db.collection.update/ Most people from an SQL background expect only the stated fields to be updated e.g.
would only modify fields a and b and leave the rest untouched. Suggest rewording the introduction to
I think we need the hint at two use-cases right at the start as it is a very common mistake to accidentally wipe out an entire document doing an update incorrectly. (Users still may not read it and get into strife, but at least we tried) |
| Comments |
| Comment by Githook User [ 22/Jan/14 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 22/Jan/14 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |