Closed jdgamble555 closed 7 months ago
The Typing For RPC Functions is incorrect after a select. I do not have access to eq, contains, or, etc...
select
eq
contains
or
For example:
const { data, error } = await supabase.rpc('custom_function').select('*, author(*)') .eq(... // can't do this .or(... // can't do this
setof posts
supabase gen types typescript --local > database.ts
This is the result:
from and rpc should work the exact same way:
from
rpc
You can see I can scroll a lot further in this example.
It is very important to note that this DOES WORK. postgREST DOES support these filters. supabase-js does not.
postgREST
supabase-js
J
This can actually be closed out. You can do the eq and all the other filters before the select, which is probably more efficient anyways. Didn't think of that before.
Bug report
Describe the bug
The Typing For RPC Functions is incorrect after a
select
. I do not have access toeq
,contains
,or
, etc...For example:
To Reproduce
setof posts
(or any table).supabase gen types typescript --local > database.ts
(or whatever file)This is the result:
Expected behavior
from
andrpc
should work the exact same way:You can see I can scroll a lot further in this example.
System information
Additional context
It is very important to note that this DOES WORK.
postgREST
DOES support these filters.supabase-js
does not.J