In the MongoDB shell, how do I list all collections for the current database that I'm using?
Mongodb – How to list all collections in the MongoDB shell
mongo-shellmongodb
Related Topic
- Mongodb – How to get the last N records in mongodb
- Mongodb – How to execute mongo commands through shell scripts
- Mongodb – Query for documents where array size is greater than 1
- Mongodb – Pretty print in MongoDB shell as default
- Mongodb – How to rename a MongoDB database
- Mongodb – How to export all collections in MongoDB
- R – Who has the responsibilty of loading data
- Php – getenv(“HTTP_XXX) return nothing
Best Answer
You can do...
JavaScript (shell):
Node.js:
Non-JavaScript (shell only):
The reason I call that non-JavaScript is because:
If you really want that sweet, sweet
show collections
output, you can: