.eq is not filtering when value is undefined (a BUG maybe?)

But I guess that since an undefined value never exists in the collection, it gets ignored intentionally (no need to run a query if you know the answer upfront).

And by the way, that’s why my code is better than your solution. It saves an unnecessary query (and query time).