how to find all documents and only return selected data mongodb code example
Example: mongodb select fields
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )