limit()

Limits the result with the specified count.

1final data = await supabase
2  .from('cities')
3  .select('name, country_id')
4  .limit(1);

Examples#

With select()#

1final data = await supabase
2  .from('cities')
3  .select('name, country_id')
4  .limit(1);

With embedded resources#

1final data = await supabase
2  .from('countries')
3  .select('name, cities(name)')
4  .eq('name', 'United States')
5  .limit(1,  foreignTable: 'cities' );