apache / nano

Nano is now part of Apache CouchDB. Repo moved to https://GitHub.com/apache/couchdb-nano

Home Page:https://github.com/apache/couchdb-nano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bulk() with _deleted:true causes error

adityamedhe opened this issue · comments

I am trying to delete documents using the "_deleted": true field method. However after attempting to insert the documents (some of which contain _deleted:true) with db.bulk(), I get the following error:

Error: Bad special document member: _deleted

Please advise

Somebody please respond!

I suggest using stack overflow for questions, especially when they relate to couchdb not nano (seems likely the case). You can use the DEBUG=* to run with verbose output, check package.json for a sample

I did check SO, and could not find anything hence opened the issue as a last resort.
Cloudant docs state that you can use _deleted clause to delete documents, so I guess this is a problem with the package itself..
Please suggest solutions if any.