vert-x/mod-mongo-persistor — pull request #7 by whatevercode (2012-09-02 10:19:25+00:00)
Title: Implemented MongoDB updating function

## Update

Updates a document in the database.
Uses the Mongodb update function: http://www.mongodb.org/display/DOCS/Updating

To update a document send a JSON message to the module main address:

{
"action": "update",
"collection": ,
"criteria": {

},
"objNew" : {

},
upsert :
multi:
}

Where:
* `collection` is the name of the MongoDB collection that you wish to save the document in. This field is mandatory.

An example would be:

{
"action": "update",
"collection": "users",
"criteria": {
"_id": "tim",
},
objNew : {
$inc: {
age: 30
}
},
upsert : true,
multi : false
}