Taking this document :
{
"targets": [
['a', 'b'],
['a']
]
}
I would like to retrieve it with the following targets :
['a', 'b']
['a']
['a', 'b', 'c'] //because one target contains 'a' and 'b'
And not with this one :
['b'] //because non of the targets contains only 'b'
I tried with this query criteria but it doesn't work at all :
'targets': {
'$elemMatch': {
'$elemMatch': { '$in': target }
}
}