Hi all. New to Supabase, and working in a Svelte s...
# javascript
t
Hi all. New to Supabase, and working in a Svelte site. Maybe a silly question, but I can't find much online. I have a database table with 1 row in it. When I use the client as they explain in the documentation, I can see the hit to the API, and it returns a 200, but it is an empty array. I've tried just returning all rows, i.e. no user_id filter or anything, and I get the same. The code is below if that helps.
Copy code
let { data: parameters, error, status } = await supabase
        .from('parameters')
        .select(`*`)
        .eq('user_id', user.id);
Any help as to what I am missing here? Hitting the API directly via Postman does not return the single record either. Thanks.
g
This is almost always RLS on with no policy, or bad policy.
t
That was it, thank you.