Arrays of Documents and $elemMatch

Dot notation reaches a field of every document in an array, such as "ingredients.name"; two such conditions can be met by two different items, and $elemMatch makes them hold for the same item.

By

Updated

Cheat sheet: Arrays of Documents and $elemMatch
Category
MongoDB
Level
Journeyman
Tags
$elemMatch, Array Field, Embedded Document, mongodb