Answers for "delete comment in array field mongodb"

0

deleting a comnent from arrays of comments in mongodb

TestData.update(
             {}, 
             {$pull: {comments: req.params.comment_id}},  
             { multi: true },
             function(err, data){
                  console.log(err, data);
             });
Posted by: Guest on May-03-2021

Code answers related to "delete comment in array field mongodb"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language