or()
and and()
operators do not work with subqueries
#2014
-
Environment
Description of issueUsing the test tables from #1978, you can craft a disjointed filter based on outer tables using syntax like:
Similarly, ever since #1075 you can filter on contact (sub-query) parameters:
However, it seems you cannot similarly use the disjointed (or
(the "a" is in "name" - "n" is valid b/c of "not", but the "a" throws the error) I have tried a couple of variants (parentheses, equals, different filters, etc.) to see if there is a way to escape the column name, but could not come up with anything functional. Similar:
I suspect this limitation exists regardless of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
https://postgrest.org/en/v8.0/api.html#embedded-filters recommends the following syntax:
|
Beta Was this translation helpful? Give feedback.
-
Ahh interesting, thanks! So I presume by that syntax that you cannot have "or"s across sub-tables? |
Beta Was this translation helpful? Give feedback.
-
No, each sub-table filters are independent. If you see the shape of the query(here), you'll note the sub-table WHEREs are isolated. |
Beta Was this translation helpful? Give feedback.
https://postgrest.org/en/v8.0/api.html#embedded-filters recommends the following syntax: