[SERVER-1184] Support upsert for findandmodify Created: 02/Jun/10 Updated: 12/Jul/16 Resolved: 01/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.4 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Harald Lapp | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 5 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
It would be very useful, if findAndModify would support upsert similar to db.foo.update(...). It could be specified as additional option: upsert true/false. |
| Comments |
| Comment by Mathias Stearn [ 01/Jul/10 ] |
|
see http://github.com/mongodb/mongo/blob/master/jstests/find_and_modify4.js for detailed semantics |
| Comment by auto [ 01/Jul/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: findAndModify now supports upsert field |