Use Supabase Queries Inside Supabase Queries, but Run on Server #13329
Unanswered
jdgamble555
asked this question in
Feature Requests
Replies: 2 comments
|
You can use the embedded resource language from postgrest--the server that supabase runs--to do this. I do it all the time and it works quite well. It looks like you're trying to get posts for the users the user is following. You could do something along the line of: assuming that:
Embedded resources are basically supabase/postgrest's way of doing joins. If you get good at them, they give you many of the conveniences of something like graphql. |
0 replies
|
No, I get that. Thank you. Just thought it was interesting to be able to overlap the JS calls like that. Chat GPT thought that was how it was done. J |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Chat GPT told me I could do this and it resolves on the server:
Obviously it doesn't work, but it would be a great idea!
J
All reactions