Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
list all collections in the MongoDB shell
KHMH1
Programming language:
Shell/Bash
2021-04-11 09:52:06
4
Q:
list all collections in the MongoDB shell
Chester
Code:
Shell/Bash
2021-07-15 10:24:37
db.getCollectionNames()
5
Farside
Code:
Shell/Bash
2021-02-02 18:50:00
JavaScript (shell): db.getCollectionNames() Node.js: db.listCollections()
0
Tags
shell
list
mongodb
Related
mongodb list users
see number of documents in mongodb collection
postgres how to list all databases
mongo shell commands
how to print more than 20 documents mongo shell
mongodb get all users
New to Communities?
Join the community