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