@Satyam really well explained. You said that " The $elemMatch operator matches documents that contain an array field with at least one element that matches all the specified query criteria."
However, I have a different but related question. I’d like to know how do I query an array so that all the elements of that array satisfy all the query criteria that I specify, as opposed to using $elemMatch which is satisfied even if there is only 1 element in the array that matches all the specified query criteria.
Awaiting your response.
Regards,
Sagar