Database

[{"_id":1,"a":[{"b":1},{"b":2}]},{"_id":2,"a":[{"b":3},{"b":1}]}]

Query

db.collection.find({"a.b":{/**$eq: 1*/$ne:1}})

Result