pouchdb / upsert

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

Return the updated doc in the result #1

Closed nolanlawson closed 8 years ago

nolanlawson commented 9 years ago

Instead of just returning a result like

{
  rev: '2-x',
  updated: true
}

We should return:

{
  rev: '2-x',
  updated: true,
  doc: {/* ... */}
}

where doc is the newly updated document. We need this for https://github.com/pouchdb/mapreduce/pull/250

sonofjack commented 9 years ago

+1

nolanlawson commented 8 years ago

Nah