I am having trouble writing a mongo query to achieve the following:
{
"highLevel":{
"hl_code": 123,
"text" : "headache"
},
"highLevel":{
"hl_code": 124,
"text" : "breathing"
}
}
{
"lowLevel":{
"ll_Code": 345,
"text" : "aspirin"
},
"lowLevel":{
"ll_Code": 243,
"text" : "advil"
}
}
{
"high_low":{
"hl_code" : 123,
"ll_code" : 345,
},
"high_low":{
"hl_code" : 123,
"ll_code" : 243,
},
"high_low":{
"hl_code" : 124,
"ll_code" : 243,
}
}
result:
{
"highLevel":{
"hl_code": 123,
"text" : "headache",
"lowLevel":[{
"ll_Code": 243,
"text" : "advil"
},{
"ll_Code": 345,
"text" : "aspirin"
}]
}
}