Perform a SELECT query on the table or view.
range()
queries to paginate through your data.select()
can be combined with Filtersselect()
can be combined with Modifiersapikey
is a reserved keyword if you're using the Supabase Platform and should be avoided as a column name.The columns to retrieve, separated by commas. Columns can be renamed when returned with `customName:columnName`
final data = await supabase
.from('countries')
.select();
final data = await supabase
.from('countries')
.select('''
name,
cities (
name
)
''');
final data = await supabase
.from('products')
.select('''
id,
supplier:supplier_id ( name ),
purchaser:purchaser_id ( name )
''');
final data = await supabase
.from('users')
.select('''
name,
teams (
name
)
''');
final data = await supabase
.from('messages')
.select('''
content,
from:sender_id(name),
to:receiver_id(name)
''');
final data = await supabase
.from('cities')
.select('name, countries(*)')
.eq('countries.name', 'Estonia');
final res = await supabase
.from('cities')
.select('name')
.count(CountOption.exact);
final data = res.data;
final count = res.count;
final data = await supabase
.from('users')
.select('''
id, name,
address->city
''');
final data = await supabase
.from('cities')
.select('name, countries!inner(name)')
.eq('countries.name', 'Indonesia');
final data = await supabase
.schema('myschema')
.from('mytable')
.select();