Tag: Express code to delete data from MONGO Database

REST API Delete – Remove Mongo DB Record

Delete a record in Mongo DB database using express js code. DELETE Request in REST API sample code example. app.route('/articles/:articleTitle').delete(function(req,res){ Article.deleteOne({title: req.params.articleTitle}, function(err){ if(err){... Read more »

DELETE Request to Delete DATA – REST API – Express Mongo

Deleting Data from the MongoDB database using REST API - DELETE REQUST. Express JS code for the REST API - data deletion code. DELETE... Read more »