Plugin to make model send only dirty fields on save/update.
Works by replacing model#toJSON
in model#save
Install with component(1):
$ component install wejendorp/model-dirty
var dirty = require('model-dirty');
var model = require('model');
var myModel = model('myModel')
.attr('id')
// ...
;
myModel.use(dirty);
// myModel#save is now dirty attributes only
MIT