-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
How to set RPC to send by GET with query params #438
Comments
What's the use case for doing GET with |
My use case is a postgrest connected to a replica database for read only, so POST requests don't work. |
@digoburigo If you mark your functions with CREATE FUNCTION --..
$$;
LANGUAGE SQL STABLE; Then PostgREST will run it under a For more details, see https://postgrest.org/en/stable/references/transactions.html#access-mode. That being said I think we could add a parameter to |
@steve-chavez oh nice, thanks for the info. Must have looked better in postgrest docs. |
@soedirgo thanks—do you know which release this will be in, or even just the PR/commit so I can track it through? Edit: or maybe I misunderstood the conversation above and we didn't resolve to add the option? Another use-case: we use RPC for dashboard widget data functions that take abstracted/common params (date range, granularity, etc.). Our CDN can cache this data nicely at the edge for |
Improve documentation
Link
https://supabase.github.io/postgrest-js/v2/classes/PostgrestClient.html#rpc
How to make a RPC call with GET and query params
Describe the problem
Don't have an example or how to do it
Example:
GET https://postgrest-url.domain/rpc/{function}?{param}={value}...
The text was updated successfully, but these errors were encountered: