Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check record successfully delete in mongodb node js

Model.remove({ _id: req.body.id }, function(err) {
    if (!err) {
            message.type = 'notification!';
    }
    else {
            message.type = 'error';
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #record #successfully #delete #mongodb #node #js
ADD COMMENT
Topic
Name
7+7 =