Supabase Array Items

Hey
I have a supabase table and one of the columns contains an array of keywords, example: [“funny teacher appreciation t-shirt”, “T-Rex milestone school shirt”, “my teacher survived 100 days t-shirt”, “cheerful dinosaur school shirt”, “100 days of school T-Rex shirt”]. When I fetch the collection and array is recieved as a string, how can i handle this in Weweb to turn it back into an array?

Thanks

Try JSON.parse([your_array_here]) in the formula

Thanks. Where would I put the formula? When I bind the array? When the collection is fetcher?

You use the bind (plug) icon and then add the JSON.parse as text and add your formula by clicking it in the explorer. As a normal formula essentially. You do this when you bind the data.

1 Like

Thanks, works perfect.