Supabase Favourite Array

This is a newbie question, so I apologize in advance.

I have a "favourites" column which is of type array.
I plan to save the user's favourites here, referring to the ID of the items, and list it on another favourites page.

1. How do I go about adding the ID of the favourited item to the array?
I created an action to update user "favourites", but I cant select the ID, as I believe it is asking for Type: List<string>. How is this done? Thank you!



2. How do I then display the listview later with the array data of IDs?

Thanks in advance!

10 replies