print value mongodb shell

C++
db.getCollection('CollectionName').find({})
	.map(data => printjson(data))
Source

Also in C++: