Update table with Edge function but not with client side

Hi friends,

i tried to enable RLS for service_role.

Then called the Edge function however i'm unable to get any data back.

I tried the example code here https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts recommended by @garyaustin

But with no success... when i disable RLS, it works

The main purpose is to use the edge function to update the table.. and prevent client side users from updating it
GitHub
The open source Firebase alternative. Follow to stay updated about our public Beta. - supabase/index.ts at master · supabase/supabase
Was this page helpful?