supabase v2 - type returned is undefined[] | undefined

I'm sure I'm missing something here. I'm using supabase-v2 and loaded Database types using the cli tool.

I'm initializing the supabase client like so: createClient<Database>

But the data returned is of type undefined[] | undefined .
I'm on supabase-js 2.0.0-rc.10.
cleanshot_09_26_at_11_322x.png
Was this page helpful?