these commands are specific to mongo shell (mongosh command):
- show dbs ==> shows list of all available databases
- use flights ==> when starting to insert data in this DB, then
flights
db will be created on the fly. - db.flightData.insertOne({"name":"f1"})
- db.flightData.find(); ==> shows all data
- db.flightData.find().pretty(); ==> shows all data in pretty format
- mongoDB uses
BSON
(which is binary json) for storing data in database.