We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rpc
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
The supabase client is not automatically typing RPC functions all responses based on the generated Database type.
Steps to reproduce the behavior, please provide code snippets or a repository:
export const supabase = createClient<Database>( env.SUPABASE_URL, env.SUPABASE_ANON_KEY, );
const response = await supabase.rpc('my_function', data);
The supabase client automatically types the RPC response based on the Database schema types
Working if the types are explicitly passed:
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Can you provide your CLI version & supabase-js/postgrest-js versions? We have a test for RPC return types so not sure how this happened.
Sorry, something went wrong.
i think this is solved, probably an intermediary cli version was fixed and now works. closing :)
No branches or pull requests
Bug report
Describe the bug
The supabase client is not automatically typing RPC functions all responses based on the generated Database type.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The supabase client automatically types the RPC response based on the Database schema types
Screenshots
Working if the types are explicitly passed:
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: