how to view mongodb database tables code example Example: show collections in mongodb db.getCollectionNames()