MongoDB Compass
• MongoDB provides a GUI based application for writing and
executing MongoDB commands.
• And this GUI application is called as MongoDB Compass.
• You can download this GUI application from the MongoDB’s
official website: https://www.mongodb.com/
Here you can see that, under tools menu, we have Compass.
Download the MongoDB Compass from here for your respective
Operating System
• Download the msi package
• And follow the necessary installation steps to get started with
MongoDB compass.
After successful installation the interface would look something like:
After successful installation you can create a new connection string.
This default provided string is for local installation of MongoDB.
If in case your MongoDB database is hosted on a remote server you will
be providing connection string for that remote server here.
After clicking on connect you’ll be connecting to the MongoDB server
which is installed locally on your machine. And there you can see the
databases that you created using Mongo shell.
In my case I have made many for demonstration purposes:
Database
Documents
Collection
To add a new document in this data using GUI application we have two
ways to insert the data:
Either add a Json like file or insert the document using the insert
document option.
Same you can do for edit by clicking on the pencil icon and
change/update the required fields.
You can also query your collection by using the below feature:
Demonstrating the use of filter
That’s how efficient and useful MongoDB compass is !.. to perform the
CRUD operations.