© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
((()))

pass jsonb to rpc

as seen in screenshot value needs to be jsonb, but I am not sure how to pass it jsonb

let claim = 'claims_admin', claim_value = toString(admin);
const { error: claimErr } = await supabaseClient.rpc('set_claim', { user_id, claim_value, claim });
let claim = 'claims_admin', claim_value = toString(admin);
const { error: claimErr } = await supabaseClient.rpc('set_claim', { user_id, claim_value, claim });


I am trying as code above but getting error

Could not find the public.set_claim(claim, claim_value, user_id) function or the public.set_claim function with a single unnamed json or jsonb parameter in the schema cache
Could not find the public.set_claim(claim, claim_value, user_id) function or the public.set_claim function with a single unnamed json or jsonb parameter in the schema cache
image.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RPC custom function to add object to JSONB array?
SupabaseSSupabase / help-and-questions
4y ago
Trying to alter a jsonb column's default type to be empty jsonb.
SupabaseSSupabase / help-and-questions
4y ago
how can I pass an array of objects to an rpc call?
SupabaseSSupabase / help-and-questions
4y ago
Structure JSONB Make.com
SupabaseSSupabase / help-and-questions
8mo ago