To read about MongoDB, please click here.
To know about terms used in MongoDB, please click here.
For a sample MongoDB dataset, please click here.
In this article, we will be discussing the list of the commands that are used against the databases in MongoDB.
To get the list of all databases.
show dbs
To create a new database.
use DATABASE_NAME
To know current selected database
db
To drop a database
db.dropDatabase()
Hope you find this article helpful.
Please subscribe for more interesting updates.