how to prioritize `OR` filter? I have multiple doc...
# orm-help
g
how to prioritize
OR
filter? I have multiple docs where both
OR
could return true. But I want to prioritize only one of them if both are true. e.g.: I have field
isEmpty: boolean
and
accountId: string?
I want to get where
accountId
is defined and
isEmpty
is
false
or where
accountId
is not defined and
isEmpty
is true. In some cases both of them are true, and in such cases I want to get first conditions result. Please, advice