Combines a modify and find operation to a single atomic operation.
MongoDB query expression to identify the matched document
Update expression for the matched document
An Exception will be thrown if an error occurs in the communication with the database server.
http://docs.mongodb.org/manual/reference/command/findAndModify
See Implementation
Combines a modify and find operation to a single atomic operation.