{
"_id" : ObjectId("5cca927ed5494b0"),
"userName": "1234",
"rcReviews": [{
"userName": "qwert",
"finalReview": "qtrwyw",
"dField": [{
"name": "t2",
"status": "Not Verified",
"reviewComment": "asdfag"
},
{
"status": "Not Verified",
"reviewComment": "asegqrt",
"name": "t13"
},
{
"name": "c452",
"status": "Not Verified",
"reviewComment": "gaeqrtqa "
},
{
"status": "Not Verified",
"reviewComment": "tyqiqooqa",
"name": "c13"
}
]
},
{
"userName": "1517",
"finalReview": "wsywx",
"dField": [{
"status": "Not Verified",
"reviewComment": "aswrrwgqrt",
"name": "t113"
},
{
"name": "c1516",
"status": "Not Verified",
"reviewComment": "gaeqredectqa "
},
]
}
]}
To achieve the desired result, I need a query that validates the existence of each dField array key in the rcReviews array. If a match is found, the dField array should be removed while keeping the other contents intact.