Answer by mtj for MongoDB find key on nested object KEY (JSON)
When you try to query for makes.fgh, you don't do a query on the content, but on the structure, as "fgh" is not a value but a sub-document.You can achieve this with a $exists...
View ArticleMongoDB find key on nested object KEY (JSON)
So pretty new and absolutely uneducated on MongoDB. Having this JSON structure:{"id": "123456","makes": {"abc": {"att1": 4,"att2": "fffff","att3": 46 },"fgh": {"att1": 8,"att2": "ggggg","att3": 6...
View Article
More Pages to Explore .....