-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embedding returning unrelated results w/ foreign key field filter applied #696
Comments
Everything is correct. in more general terms, conditions like |
(please close) |
ok, is there a way that would work the way I was envisioning? Closing now. |
without a view no |
FWIW, this can be accomplished (as noted in your Advanced Endpoints wiki article) by using functions.
Then you can: |
@brian-leidos i guess it's possible to have that function that basically creates a virtual column in issues table with data from the apps table, and you filter based on it. This can work if the returned dataset is not big (less then 100) but i think it will be much less optimal then a view (that function will be executed for each issue) |
tested w/ docker image w/ tag fd8db3203b33 ( PostgREST 0.3.2.0)
request:
http://localhost:3000/issues?select=*,apps{*}&apps.name=eq.foobar
expected: first two but not last entry
cc @ruslantalpa
The text was updated successfully, but these errors were encountered: