MongoDB is one of most famous NoSQL database. MongoDB is a free and open-source cross-platform document-oriented database program. MongoDB uses JSON-like documents with schemata. MongoDB is developed by MongoDB Inc.

You can download a free MongoDB database at https://www.mongodb.com.

am using robo 3T GUI for MongoDB enthusiasts . you can download robo 3T at https://robomongo.org it is a light weight and free.

insert MongoDB

  1. Creating a database


2. inserting data to database

we use insertOne() method insert a record or document


3. output


find MongoDB

In MongoDB we use the find() and findOne() methods to find data in a collection.

find() method


output

It shows every data name:’Aadhil’ in collection


findOne() method

In findOne method we can retrive what data we need from the collection


output


Delete MongoDB

There are two methods delete the data in MongoDB

  1. delete many()

In this method delete every data from collection what we select


in this case delete all the data’s name:’Aadhil’

2. delete One()

In this method delete the only one data what we selected