Hello, why am I receiving an empty array with just
let { data: categories, error } = await supabase
.from('categories')
.select('*')
s
silentworks
09/13/2021, 5:21 PM
This would be hard for anyone to guess since we don't know your system setup. Maybe you don't have any data in that table, maybe your RLS isn't configured properly.
b
bokolesnik
09/14/2021, 8:32 AM
Setting API keys as
service_role
+
secret
resolved my problem. Thank you
s
silentworks
09/14/2021, 9:56 AM
If this is on the client side please don't do it. Exposing those keys on the client means that someone can do real harm to your data. I think your issue is related to row level security (RLS).