I want to remove withBase filed from array elements inside casts.crew ..
I tried this
Code: Select all
db.coll.update({_id:235399},{$unset: { "casts.crew.withBase" : 1 } },false,true)
And tried this..
Code: Select all
db.coll.update({_id:235399},{$unset: { "casts.crew" : { $elemMatch: { "withBase": 1 } } } },false,true)
Can someone please provide me the right query?