You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Thaina Yu (JIRA)" <ji...@apache.org> on 2016/08/05 09:58:20 UTC
[jira] [Created] (COUCHDB-3094) Get doc updated on put
Thaina Yu created COUCHDB-3094:
----------------------------------
Summary: Get doc updated on put
Key: COUCHDB-3094
URL: https://issues.apache.org/jira/browse/COUCHDB-3094
Project: CouchDB
Issue Type: Improvement
Components: Database Core
Reporter: Thaina Yu
When we PUT to update document. I think it should have an option to get return as a difference between version of document, or older version (or has an option for both)
suppose we have doc { "test0" : 0,"test1":"TT","test2":false }
then we PUT /docID?return=diff { "test0" : "test" : "test1" : "TT" }
we get {
old: { _rev:oldID, "test0" : 0,"test2":false } // no test1 because no change
new: { _rev:newID, "test0" : "test" }
}
something like this would be useful
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)