how to print the data of collection in mongodb code example Example: show collection data in mongodb db.collectionName.find()