Try it Out
Drivers
Downloads
Community
Blog
OPTIONS
Version
Select Version
3.0 (upcoming)
2.6 (current)
2.4
2.2
Formats
HTML
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
mongo
Shell Methods
>
Database Methods
>
db.getCollectionNames()
db.getCollectionNames()
¶
db.
getCollectionNames
(
)
¶
Returns:
An array containing all collections in the existing database.
←
db.getCollection()
db.getLastError()
→
ON THIS PAGE
db.getCollectionNames()
Report a Problem