MongoDB query expression to identify the matched document
Update expression for the matched document
Generic BSON object that contains additional options fields, such as "new": true
An Exception will be thrown if an error occurs in the communication with the database server.
import vibe.db.mongo.mongo; void test() { auto coll = connectMongoDB("127.0.0.1").getCollection("test"); coll.findAndModifyExt(["name": "foo"], ["$set": ["value": "bar"]], ["new": true]); }
Combines a modify and find operation to a single atomic operation with generic options support.