If I'm reading the code correctly merge does a partial update, whereas update requires all fields to be present as is the normal CouchDB way.
However, calling model.update within the context of SailsJS, one would expect 'partial update' functionality. This is the implementation of all other adapters afaik? (a guess to be honest).
If correct, wouldn't it make sense to rename model.merge to model.update?
If I'm reading the code correctly
merge
does a partial update, whereasupdate
requires all fields to be present as is the normal CouchDB way.However, calling
model.update
within the context of SailsJS, one would expect 'partial update' functionality. This is the implementation of all other adapters afaik? (a guess to be honest).If correct, wouldn't it make sense to rename
model.merge
tomodel.update
?