supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
962 stars 128 forks source link

feat: `.rpc()` with GET #529

Closed soedirgo closed 2 months ago

soedirgo commented 3 months ago

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.

github-actions[bot] commented 2 months ago

:tada: This PR is included in version 1.15.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: