Apply for Zend Framework Certification Training

MongoDb






    const blogId =  req.body._id;
    userSchema.updateOne(
                         {_id : userId}, 
                         {$pull : {allBlogs : {_id :blogId }}}
                         ).exec((err, data) => {
      if (err) throw new Error(err);
      return apiResponse.successResponseWithData(res,'deleted',data);
    })

< Use of sort in mongoDb using nodeJs Last >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top