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('instruments')
.select();
final data = await supabase
.from('instruments')
.select('''
name
''');
final data = await supabase
.from('orchestral_sections')
.select('''
name,
instruments ( 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('instruments')
.select('name, orchestral_sections(*)')
.eq('orchestral_sections.name', 'percussion');
final res = await supabase
.from('instruments')
.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('orchestral_sections')
.select('name, instruments!inner(name)')
.eq('orchestral_sections.name', 'strings')
.limit(1);
final data = await supabase
.schema('myschema')
.from('mytable')
.select();