see collections of a database in mongodb code example Example: show collections in mongodb db.getCollectionNames()