mongodb get only the fields code example Example: return only specific fields mongodb db.inventory.find( { status: "A" }, { item: 1, status: 1 } )