Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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);
             });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #deleting #comnent #arrays #comments #mongodb
ADD COMMENT
Topic
Name
1+5 =