Author: smartcoder
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 »
PATCH request in REST API can be made to update particular fields in a particular record. It can alter certain fields without replacing entire...
Read more »
Update() in mongo db is deprecated and it was used for updating a record. Now this function can be done using replaceOne() . Here...
Read more »
Update a record in Mongo DB database using express js code. PUT Request in REST API sample code example. app.route('/articles/:articleTitle').put(function(req, res){ Article.replaceOne( {title: req.params.articleTitle},...
Read more »
Query and retrieve a specific Mongo DB record using Express JS REST API. Mongo DB findOne() method usage for retrieving single record from the...
Read more »
Optimizing the routes code by Chaining multiple routes together. GET, POST, DELETE request routes are chained together as an example in this article. Refactoring...
Read more »
Deleting Data from the MongoDB database using REST API - DELETE REQUST. Express JS code for the REST API - data deletion code. DELETE...
Read more »

Gradient designs and backgrounds looks great if right color combinations are selected. It time consuming to find the right combinations after lot of trial...
Read more »

Inserting Data to the MongoDB database using REST API - POST REQUST. Express JS code for the REST API - data insertion code. INSERT...
Read more »

Retrieving Data from the MongoDB database using REST API - GET REQUST. Express JS code for the REST API - data retrieving code. GET...
Read more »