[DOCS-2637] $setOnInsert says it only works with update() Created: 31/Jan/14 Updated: 10/Feb/14 Resolved: 10/Feb/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | v1.3.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Glenn Maynard | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 1 week, 2 days ago |
| Description |
|
http://docs.mongodb.org/manual/reference/operator/update/setOnInsert/ says "only when using the upsert option to the update() operation performs an insert" with bold on "only". It also works with findAndModify update clauses in upsert mode. |
| Comments |
| Comment by Githook User [ 10/Feb/14 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 10/Feb/14 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |