List MongoDB Cloud Collections
To view the lists in the MongoDB database, you can use the following command:
- Connect to the MongoDB database:
mongo
- Switch to the database you want to view.
use database_name
- View the list of collections in the database.
show collections
This allows you to view all collections in a specified database (similar to tables in a relational database). You can also use some advanced commands to view more detailed information, such as the number of documents in a collection, index information, etc.