1
votes

I have a Couchdb document id and revision id and I would like to update the document. How can I achieve this using CouchRest?

I have tried including "_rev" in "put" as suggested somewhere but that doesn't work. This is what I've tried so far:

 CouchRest.put('connection/db/docid',{"_rev": "id"},"Name": "XVZ"})
1

1 Answers

2
votes

I advise you to read this doc : http://guide.couchdb.org/draft/tour.html#first It might make couchdb clearer!

PS : You must specify id and rev to make it work.