Return only specific fields from projection array sub-document
问题 I'm looking at MongoDB's documentation on the $ and $elemMatch projections. I'm trying to figure out how to return only a subset of a projection array's fields, but I cannot seem to figure it out. Related posts: I am not trying to perform a $slice from mongodb aggregation framework - Fetch first document's field of the nested array. Nor am I trying to flatten the sub-document from Return only array value in mongo projection because I still want some fields from the top document. Say I have