Dart Reference v2.0

Limit the number of rows returned

Limits the result with the specified count.

Parameters
    count
    REQUIRED
    int

    The maximum number of rows to return.

    referencedTable
    Optional
    int

    Set this to limit rows of referenced tables instead of the parent table.


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