Show collections in the current database.
Section: Connect and navigate
List collections
javascript
javascript
show collectionsExplanation
Useful when exploring a schema or checking whether a collection already exists.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Connect and navigate
Get collection names programmatically
Return an array of collection names.
Check database stats
Inspect size, object count, and storage metrics.
Connect with a MongoDB URI
Connect directly with a full connection string.