Hi,
I was working with the data and got stuck in a problem that might be small for you.
I want to merge the objects and append it to the Array here are sample collections
COLLECTION A
{
"customerId": "111",
"name": "Adil",
"satisfactionLevels": [{
"A": "Score 1",
"B": "R",
"C": 2,
"D": 1
}, {
"A": "Score 2",
"B": "S",
"C": 2,
"D": 2
}]
}
COLLECTION B
{
"customerId": "111",
"sScore": "20.54",
"intId": "1527"
}
EXPECTED OUTPUT
{
"customerId": "111",
"name": "Adil",
"satisfactionLevels": [{
"A": "Score 1",
"B": "R",
"C": 2,
"D": 1
}, {
"A": "Score 2",
"B": "S",
"C": 2,
"D": 2
}, {
"customerId": "111",
"sScore": "20.54",
"intId": "1527"
}]
}
That’s the expected output how can I achieve this. Thanks in advance