limit()
Limits the result with the specified count.
- Dart
final res = await supabase
.from('cities')
.select('name, country_id')
.limit(1)
.execute();
Examples
With select()
- Dart
final res = await supabase
.from('cities')
.select('name, country_id')
.limit(1)
.execute();
With embedded resources
- Dart
final res = await supabase
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
.limit(1, foreignTable: 'cities' )
.execute();