How to combine two sequencing sub docs into one like “did”: “XYZ” and “did”: “ABC” into one doc and next two into another . Following is the structure
[
{
“data”: [
{
"name": "CDF",
"timeStamp": 1759670710999,
},
{
"name": "EfF",
"timeStamp": 1559670710999,
}
],
"did": "XYZ",
"id": "1_2"
},
{
“data”: [
{
"name": "WER",
"timeStamp": 1859670710999,
},
{
"name": "TYU",
"timeStamp": 1959670710999,
}
],
"did": "ABC",
"id": "1_2",
},
{
“data”: [
],
“did”: “XYZ”,
“id”: “1_2”,
},
{
“data”: [
],
“did”: “ABC”,
“id”: “1_2”,
}
]