return all documents with only one specific field mongodb code example
Example: return only specific fields mongodb
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )