Relation property filter with AND doesn't work #3742
-
Filter: Thank you for making this awesome project |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Something similar was reported previously but I'm not sure how to explain it better. In short it works correctly because internally when you filter by relation fields we perform a SELECT example.*
FROM example
LEFT JOIN colors ON ...
WHERE colors.name = "white" AND colors.name = "black" We currently don't support |
Beta Was this translation helpful? Give feedback.
Something similar was reported previously but I'm not sure how to explain it better.
In short it works correctly because internally when you filter by relation fields we perform a
JOIN
with the related collection(s) andcolors.name
will refer to a single record of that join, aka.colors.name
cannot be 2 different things at the same time.Internally the above filter will produce a pseudo-query like:
We currently don't support
IN
like operation on nested multiple relation fields, if that's what you are looking for (I've added a note in the roadmap to consider it together with some oth…