michaelklishin/monger — pull request #22 by ghoseb (2012-05-12 03:36:17+00:00)
Title: Add support for find-and-modify

Find-and-modify is a very useful MongoDB command that atomically modifies/removes/upserts a document depending on a query and optionally returns the modified document. More about find-and-modify in the [MongoDB documentation](http://www.mongodb.org/display/DOCS/findAndModify+Command).

I have added support for find-and-modify in monger.collection and some test cases.