I have a messages table , under a 'public' schema in Supabase. I'm trying to fetch all rows from my local dev environment, but nothing is returned.
I'm trying:
const response = await supabase.from('messages').select('*');
I see the request in the Supabase logs:
Using Sveltekit as a client, and the load function:
/** @type {import('./$types').PageLoad} */
export async function load() {
const response = await supabase.from('messages').select('*');
return { response };
}
Here's the log of the response:
{@debug} /src/routes/+page.svelte (6:1)
{
data: {
response: {
error: null,
data: [],
count: null,
status: 200,
statusText: 'OK'
}
}
}