_rev VS rev

29 views
Skip to first unread message

Seung Chan Lim

unread,
May 24, 2014, 5:44:24 PM5/24/14
to mobile-c...@googlegroups.com
Hi,

I vaguely remember that if I wanted to update an existing document using PUT I could simply specify the revision in the "_rev" attribute of the updating document itself. Now I look at the docs and it says I should use a "rev" parameter as part of a query string to the HTTP request URL.

Is my memory completely bogus? 


slim

Jens Alfke

unread,
May 24, 2014, 6:23:33 PM5/24/14
to mobile-c...@googlegroups.com

On May 24, 2014, at 2:44 PM, Seung Chan Lim <djs...@gmail.com> wrote:

I vaguely remember that if I wanted to update an existing document using PUT I could simply specify the revision in the "_rev" attribute of the updating document itself. Now I look at the docs and it says I should use a "rev" parameter as part of a query string to the HTTP request URL.

Either way works. The “_rev” property in the body is more commonly used, though, so I don’t know why our docs would suggest the other way.

—Jens

Seung Chan Lim

unread,
May 24, 2014, 6:28:41 PM5/24/14
to mobile-c...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages