# Getting database information

# List all databases

show dbs

or

db.adminCommand('listDatabases')

or

db.getMongo().getDBNames()

# List all collections in database

show collections

or

show tables

or

db.getCollectionNames()