how to get only specific fields of document in mongodb code example Example: mongodb select fields db.inventory.find( { status: "A" }, { item: 1, status: 1 } )