pouchdb / upsert

PouchDB plugin for upsert() and putIfNotExists() functions
Apache License 2.0
149 stars 25 forks source link

Feature request: support doc as first argument db.upsert((doc || docId), diffFunc [, callback]) #27

Closed Ti-webdev closed 7 years ago

Ti-webdev commented 7 years ago

What do you think, if we will support document as first argument of upsert method to avoid additional GET query in case where we already have the document?

nolanlawson commented 7 years ago

sorry, not planning on supporting that use case since it introduces additional complexity. you are free to fork the repo, though! :)