I am using supabase on sveltekit. And On using the...
# javascript
m
I am using supabase on sveltekit. And On using the following code to retrieve all rows in onMount I am getting result as undefined. Code: onMount (async () => { let { data, error } = await supabase.from('users').select('*'); console.log(data); }); Please help.
s
Its a bit hard to help without seeing the rest of the code or having more information on if you are using row level security (RLS), if this table has any rules that would stop it from returning data or if this table was created by yourself?
Also please don't cross post between channels.