MongoDB
Mongo DB is one of the most popular Database these days. Its a no SQL database. In this article we gonna discuss about the...
Read more »
Sessions and cookies play a very important role in a web app. These are used to store information. Cookies are used to store information...
Read more »
bcrypt is a node library that enables password hashing. So we ca securely store the password of our Node Express Mongo Apps. Install bcrypt...
Read more »
md5 is a javascript function for hashing messages, passwords with MD5. Passwords are saved securely in the mongo db database by hashing the user...
Read more »
Environment variables are used to keep the secret keys safe. While creating a Node JS app, we may need many keys/ passwords and other...
Read more »
For the encryption and authentication for mongoose documents, we can use a package called mongoose-encryption. Refer: https://www.npmjs.com/package/mongoose-encryption Install mongoose-encryption package npm i mongoose-encryption Using mongoose-encrytption...
Read more »
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 »