pouchdb / upsert

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

Response should include the old doc #6

Closed nolanlawson closed 8 years ago

nolanlawson commented 9 years ago

While working on pouchdb-find, this is something that occasionally would have come in handy. Maybe something like:

{
  updated: true,
  rev: '1-x',
  old_doc: {/* ... */}
}
nolanlawson commented 8 years ago

Nah