Database

REST API – GET Specific DB Record – Using Dynamic URL Value

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 »

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 »

POST Request to Insert DATA – REST API – Express Mongo

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

Get Request – REST API – Express JS Mongo DB APP Code

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

Relationships and Embedding Documents using Mongoose

Updating Existing record with new relation schema Read more »

Update Data in MongoDB using Mongoose

Updating Data in a Node App can be very easily done using the mongoose package. Here is the sample code for updating a field... Read more »

Data Validation using Mongoose in Node JS – MongoDB App

Data validation in MongoDB App can be easily done using the mongoose. Here is some sample validation examples: Marking Required field in MongoDB using... Read more »

Using MongoDB with Node JS

If we need to build Node JS apps using databases, then MongoDB is definitely a good option. MongoDB is a no-SQL database. For integrating... Read more »

Mongo DB Shell Commands – Git Bash Terminal

Intiate the db, by mongod Open new bash terminal and enter command mongo Now we can start using the mongo shell, just try the... Read more »

Install and Setup MongoDB Database – Local

Mongo DB is one of the most popular noSQL database. In this post we gonna setup MongoDB in a windows machine. Firstly goto Mongo... Read more »