Files
developer-roadmap/src/data/roadmaps/mongodb
Manoj Patra 00467decca fix(elem-match.md): correct $elemMatch usage in example (#8662)
The original example attempts to match multiple 'subject' and 'score' values within a single $elemMatch, which is logically incorrect.

Due to key overwriting, only the last 'subject' and 'score' were matched.

Updated the query to use $and with separate $elemMatch conditions for "Math" and "English" subjects.
2025-05-17 16:14:22 +01:00
..
2023-03-16 20:23:47 +00:00
2024-12-29 15:24:23 +00:00