creationix / couch-client

A minimal CouchDB client that easy and powerful
MIT License
101 stars 9 forks source link

merge #6

Open michael opened 13 years ago

michael commented 13 years ago

Hey :)

Would you be interested in having a CouchClient#merge (or #update) method that requires an _id and just updates the attributes provided, while leaving others untouched?

This would make obsolete the task of getting the previous document first in order to merge the changes into the object that's being passed to #save.

Would this make sense?

creationix commented 13 years ago

I'd really like to keep the api as simple as possible. It shouldn't be hard to add your own abstractions on top of it if you want.

michael commented 13 years ago

Sure thing! Just wanted to bring it up. :)

Actually, CouchClient's small footprint is what I like about it.

-- Michael