DEV Community

Full Stack Hacker
Full Stack Hacker

Posted on • Edited on

1 1

List all entities in MongoDB

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

Or

show tables

or

db.getCollectionNames() 

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay