[MongoDB] scalar list filter hasEvery is broken #3132
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
team/client
Issue for team Client.
tech/engines
Issue for tech Engines.
topic: mongodb
Overview
Let’s call
string_list
the following value:["a", "b"]
.Now try the following filter:
{ NOT: { string_list: { hasEvery: ["a", "c"] } } }
true
, becausestring_list: { hasEvery: ["c"] }
returnsfalse
, and!false
istrue
NOT hasEvery
means “x does not contain any element of y”. Since "a" is present on both lists, it will returnfalse
.To be clear, the Postgres result is the correct result.
Expected Result
The filter above should return
true
and notfalse
The text was updated successfully, but these errors were encountered: