I am getting 2 array of object from my rest api and I want to output name of corresponding _id in other collection in a html table. Pls help.
Object 1
[{
_id : '5gdgjkeugg47ghjd',
name : 'Santosh',
},
{
_id : '5ghdkbbdjjndkbdj'
name : 'Amit'
}]
Object 2
[
{
_id :1,
value: 'abc'
Type: 'refering to id of above object'
},
{
_id :2,
value: 'abc',
Type: 'refering to id of above object'
}
]