You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heyyy Supabase fam! Absolutely loving this extension, thanks for supporting it!
TL;DR There are a few explicit limitations for the schema generation and a few undocumented, (though reasonable ones). Would be awesome to see the schema generator's logs to more quickly find the offending issue for a table or function in question.
More details on my instance if you're curious...I was trying to expose a function similar to the following:
create or replacefunctionsearch_function(
a integer,
b integer
)
returns table (a integer, b integer, sum integer)
language sql
immutable
as $function$
select
a as a,
b as b,
a + b as sum;
$function$;
This function won't be exposed, which baffled me for far too long before I finally realized I super just need to return an id field in the response structure. My actual use case returned three different ID-ish fields, (I was union-ing some tables and pulled each ID back in separate columns) which is why I didn't think to have an additional id column.
The text was updated successfully, but these errors were encountered:
I didn't totally follow the limitation you're referring to here. Could you provide an example function that isn't reflected and the change you made such that it is reflected?
Heyyy Supabase fam! Absolutely loving this extension, thanks for supporting it!
TL;DR There are a few explicit limitations for the schema generation and a few undocumented, (though reasonable ones). Would be awesome to see the schema generator's logs to more quickly find the offending issue for a table or function in question.
More details on my instance if you're curious...I was trying to expose a function similar to the following:
This function won't be exposed, which baffled me for far too long before I finally realized I super just need to return an
id
field in the response structure. My actual use case returned three different ID-ish fields, (I was union-ing some tables and pulled each ID back in separate columns) which is why I didn't think to have an additionalid
column.The text was updated successfully, but these errors were encountered: