I'm using Supabase as the backend for my Flutter app, and I have a database field of type text[]
(array of strings). My goal is to retrieve these keywords and display them in an input field as a single string separated by commas.
When I fetch the data from Supabase, I pass the keywords
field to the function above to convert it into a string and return it inside an inputText
field. However, keywords
returns null
or an unexpected format, preventing me from using it correctly.
Questions:
What is the correct way to retrieve a
text[]
field from Supabase and use it as aList<String>
in Flutter?Is there any Supabase setting that might be affecting how arrays are returned?
Any help is greatly appreciated! ๐