© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
peter_from_berlin

How do I decode received data in Dart/Flutter?

I'm new here and this is my first question 🙂 In Dart, using the supabase package, I'm trying to decode the data I receive for example from the following code:

final data = await supabase
.from('countries')
.select('''
name,
cities (
name
)
''');

How do I do that? Can anyone provide me with an example how I get the resulting Dart objects out of data? How would I e.g. print the table that I get as result? Thank you.

Code taken from the documentation: https://supabase.com/docs/reference/dart/select
Fetch data | Supabase
Fetch data | Supabase
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Recommended ORM for supabase + Dart Flutter
SupabaseSSupabase / help-and-questions
4y ago
how order a related table in a select query in Dart/Flutter
SupabaseSSupabase / help-and-questions
3y ago
Login by JWT Token (Access Token, Refresh Token) in Dart / Flutter
SupabaseSSupabase / help-and-questions
8mo ago
One To Many Relation, Dart Flutter, Database Swagger Codegen
SupabaseSSupabase / help-and-questions
4y ago