Quantcast
Channel: MongoDB find key on nested object KEY (JSON) - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



MongoDB 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
Browsing all 2 articles
Browse latest View live




Latest Images