display collection command in mongo shell code example Example: show collections in mongodb db.getCollectionNames()