[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 SERVER-1184
http://github.com/mongodb/mongo/commit/ab4a1e6b292d5afabaf68e44b672441ad97c888a

Generated at Thu Feb 08 02:56:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.