mongodb commands show collections code example Example: show collections in mongodb db.getCollectionNames()