Skip to content
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

feat: .rpc() with GET #529

Merged
merged 1 commit into from Mar 30, 2024
Merged

feat: .rpc() with GET #529

merged 1 commit into from Mar 30, 2024

Conversation

soedirgo
Copy link
Member

What kind of change does this PR introduce?

feature

What is the current behavior?

No way to use .rpc() with GET

What is the new behavior?

The request will be performed with GET when using .rpc() with get: true.

Additional context

In read-replica setups, it's common to deny POST/PATCH/etc. on the API gateway level. PostgREST allows performing queries in read-only access mode via stable/immutable functions, but it wouldn't work on this read-replica setup.

@soedirgo soedirgo linked an issue Mar 28, 2024 that may be closed by this pull request
@soedirgo soedirgo merged commit 7c3dd21 into master Mar 30, 2024
1 check passed
Copy link

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to set RPC to send by GET with query params
2 participants