Create Collection in Mongo DB using Mongo DB compass
Step 1:
Open MongoDBCompass
GUI of MongoDBCompass
Step 2:
Connect with MongoDB & open Databases
Step 3:
Create database with name TravelLog and cluster name passengers
Step 4:
Open database TravelLog & open cluster passengers
Step 5:
Create a passengers csv or JSON file (JSON file can be created by using notepad and saveas .JSON)
Step 6:
Import csv or JSON file in MongoDBCompass
We have successfully created a cluster in MongoDB.
Now we will open it using command prompt.