© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
lanbau

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
supabase/index.ts at master · supabase/supabase
The open source Firebase alternative. Follow to stay updated about our public Beta. - supabase/index.ts at master · supabase/supabase
supabase/index.ts at master · supabase/supabase
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

edge-function update
SupabaseSSupabase / help-and-questions
3mo ago
edge function wont update
SupabaseSSupabase / help-and-questions
9mo ago
Renamed Table, broke edge function
SupabaseSSupabase / help-and-questions
5mo ago
Query table from edge function
SupabaseSSupabase / help-and-questions
4y ago