mongodb fields in collection code example
Example 1: mongodb select fields
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
Example 2: operator to return specific data of a mongodb query
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )