I am trying to fetch an array inside the multiple objects as stored in MongoDB. when I perform a get method from node js I get "path" and "content". "path" gives the property name in a strig.
Here is the data:
content:{
'abc':{
'def':{
'ghi':{
'jklm.pd':[...] //this is the content i need to fetch
},
'lmn':{
'rst':{
'opqr.pd': [...] //this is the content i need to fetch
}
}
}
}...
},
path:["/abc/def/ghi/jklm.pd",
"/abc/def/lmn/rst/opqr.pd"
......]
based on each path I need to get the array from the content. need to do this in node.js please help me with this