Prerequisites: Installed MongoDB on Ubuntu
MongoDB is a NoSQL database, that stores documents in JSON format. A collection is an entity in MongoDB (ie similar to a table in RDBMS databases) that stores JSON documents.
You can use one of the following commands from Mongo Shell to list all available collections in the MongoDB database:
show collections
show tables
db.getCollectionNames()
Top comments (0)