nearinfinity/node-persist — Issue #14: Succinct update syntax
Author: kunklejr
Created: 2011-12-22 18:32:03+00:00
State: open

It would be nice to have a simple way to update an object given its id. Consider the following code below, where Event is the model object to be updated:

```javascript
// Model.update(primaryKey, params[, callback])
Event.update(2, {
name: 'new name',
location: 'new location'
}, function(err, updatedEvent) {

})
```