This mixin provides
update()
and
findAndModify()
methods.- Source:
- See:
Example
var collection = new KagoDB(opts);
var query = {
name: 'apple'
};
var update = {
$inc: {
stock: -1
}
};
collection.update(query, update, null, function(err){
console.log(err);
});