incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Getting the current _rev in case of a 409
Date Tue, 28 May 2013 15:20:34 GMT
No, by design. That would encourage users to blindly overwrite data by
updating the _rev to match. Instead, you'll need to fetch the
document, getting its new content and rev, and re-apply your change.

B.


On 25 May 2013 22:53, Daniel Wertheim <daniel@wertheim.se> wrote:
> Hi,
>
> is there a way to get CouchDb to return the current _rev of the document
> being updated whenever a conflict occurs? Either in the content/body of the
> response or as a header.
>
> Cheers,
>
> //Daniel

Mime
View raw message