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 });


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
image.png
Was this page helpful?