Return only matched sub-document elements within a nested array
So the query you have actually selects the “document” just like it should. But what you are looking for is to “filter the arrays” contained so that the elements returned only match the condition of the query. The real answer is of course that unless you are really saving a lot of bandwidth by filtering … Read more