jeika
unread,Mar 29, 2012, 3:06:11 PM3/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CouchApp
Hi, I'm testing the bulkRemove method in jquery.couch.js and running
into problems. Everything seems to be ok, except the docs are not
updated in the database. Here's my code:
$.couch.db("kreftlextest2").allDocs({success: function(data) {
var docs = data.rows;
$.couch.db("kreftlextest2").bulkRemove({"docs": oldDocs}, {
success: function(data) {
console.log(data);
},
error: function(status) {
console.log(status);
}});
}});
The 'docs' variable length is 92 and the log shows me the expected
[{"id":"d12ee5ea1df6baa2b06451f44a01a0d8","rev":"2-
eec205a9d413992850a6e32678485900"}] for each of these. I also put a
breakpoint in jquery.couch.js and checked that it looped through and
added _deleted=true to the docs. But nothing happens in the database.
Clues to what I am doing wrong please?