print value mongodb shell code example Example: print value mongodb shell db.getCollection('CollectionName').find({}) .map(data => printjson(data))