elemMatch
One element at path satisfies operand, whose paths are relative to the element.
elemMatch(path("$.items[*]"), and(path("$.sku") eq "A", path("$.qty") eq 5))Content copied to clipboard
The correlated question, and a different one from and over the same two leaves — that matches a document whose sku came from one element and qty from another. See Predicate.ElemMatch, and note that $.sku inside means the element's sku rather than the document's.
The same, from an expression: elemMatch("$.items[*]", …).