how to show documents mongodb code example Example 1: show collection data in mongodb db.collectionName.find() Example 2: query mongodb db.inventory.find( {} )