-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete successful but data has not removed #125
Comments
Same issue here.. |
Yoo can delte with below code: the problem is rel.find("posts", docId) return array result. But rel.del is expected a document. So the delete result is returned as {deleted: true} but the document not removed. If we give a document to rel.del method, the problem is solved. |
Hello @nolanlawson @jlami
first of all this a copy of #79
getting success message on
delete(id) { this.baseDB.rel.find('post', id) .then( post => { console.log('to be deleted', post) return this.baseDB.rel.del('post', { id: post.id, rev: post.rev }) }) .then( success => { console.log('deleted', success) <== {deleted: true} } ) .catch( err => console.log(err) ) }
{deleted: true}
but data is still present in
post
arrayThe text was updated successfully, but these errors were encountered: