Function MongoCollection.findAndModify
Combines a modify and find
operation to a single atomic operation.
Prototypes
Parameters
Name | Description |
---|---|
query | MongoDB query expression to identify the matched document |
update | Update expression for the matched document |
returnFieldSelector | Optional map of fields to return in the response |
Throws
An Exception
will be thrown if an error occurs in the
communication with the database
server.
See Also
http://docs.mongodb.org/manual/reference/command/findAndModify
Authors
Sönke Ludwig
Copyright
© 2012-2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.