Flutter: Limit the number of rows returned

Limits the result with the specified count.

Parameters

Examples

With `select()`

final data = await supabase
  .from('cities')
  .select('name')
  .limit(1);

On a referenced table

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