How do I check if list1 contains A and list2 don’t contains A?
both list1 and list2 are array (list2 can be empty or not set)
I tried query:
{
'list1':'A',
'list2':{ '$ne':'A'}
}
but I’m getting results with list1 contains A and list2 contains A.
if I remove 'list2':{ '$ne':'A'} ...results is the same, likes list2 part don’t metter
strange …am I doing something wrong?
I was updating it wrong. Should be this:
Or this:
the document looks like this:
Where it’s correct that
{"0": "A"}is not equal toA