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