{
"_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 "
},
]
}
]}
I want a query which checks dField array key exists in rcReveiws array. If it exists then it has remove the dField array and other contents should be there only dField array should be removed