Wrong field type in Weweb, not in Supabase

Hi, I’m facing a strange problem (surely I’m missing something but I really don’t see) : I’ve created a new column “docRecent” within a supabase table, which is a boolean, but it appears as an object in Weweb … See the pics below :

In my Supabase table :

Data collection binding (“docRecent” doesn’t even appear in the fields of an object in my collection) :
Capture d'écran 2024-11-22 162150

And when I try to set up “docRecent” as a filter, I get “docRecent” as an object :

And this is how I’m sending the false or true boolean info to Supabase :


Would love to hear from you :sweat_smile:

It’s because it’s null. Set your column’s default value to FALSE in Supabase instead. Then it will work.

I thought about this but it’s working with “toutProfiles” which contains NULL values ! So a bit odd, but indeed it must be this

It usually happens when WeWeb can’t infer the data type from the first row that is returned. So my best guess is that toutProfiles has the first value that is non null (e.g TRUE) if you set the docRecent to TRUE/FALSE it will work.

1 Like

Very clear, thanks for your time

1 Like