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