Answer the question
In order to leave comments, you need to log in
How to query nested attributes in Mongo?
I have the following data set:
{
"_id" : ObjectId("55d48d91e9fb6a71188b4567"),
"data" : {
"10104" : {
"title" : "Abgasanlage/Turbolader/Lambda-Sonde ",
"sort_title" : "abgasanlage/turbolader/lambda-sonde ",
"node_id" : "10104",
"parent_id" : "10001",
"items" : [
{
"assemblyGroupNodeId" : "12551",
"parentNodeId" : "10104",
"assemblyGroupName" : "Abgasklappe",
"alias" : "abgasklappe",
},
//....
}
db.collection.find({"data.items.assemblyGroupNodeId": "12551"})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question