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.
What kind of change does this PR introduce?
feature
What is the current behavior?
No way to use
.rpc()
with GETWhat is the new behavior?
The request will be performed with GET when using
.rpc()
withget: 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.