List and collections

Guys, at supabase i’ve created a table called “workspaces”, which contains the following fields:

  • id
  • createtime
  • user_id
  • name

I added a row to this table, linking it to my user that I created with Supabase Auth.

I also created a collection for this workspaces table and selected all table fields.

Now, I’m trying to fetch this row from the workspaces table and display it in a list, showing only the “name” field. However, when following the WeWeb video about collections, the method shown seems to be outdated.

This shows to me that the Workspace collections has 0 items.

How can I do this?

Hi @joaosander

Have you checked: Supabase data source | WeWeb Documentation

thank you very much!

What i did:

at table workspaces inside supabase, i’ve created a rls policy
“select”
authenticated

alter policy “Enable read for authenticated users only”
on “public”.“Workspaces”
to authenticated
using (
(user_id = auth.uid())
);

it worked!

1 Like