here is a document in mongo:
{
_id: objectid,
user: objectid,
company: objectid,
groups:[
{items:['a','b']}, {items:['c','d']}
]
}
then, i got a array:
['a','c']
i want to pull this array from above document and i want to operate above document , finally i want the above document be like this:
{
_id: objectid,
user: objectid,
company: objectid,
groups:[
{items:['b']}, {items:['d']}
]
}
how to get this result in mongo
i'm desire helps
thanks.