Dart Reference v2.0

Limit the query to a range

Limits the result to rows within the specified range, inclusive.

Parameters
    from
    REQUIRED
    int

    The starting index from which to limit the result.

    to
    REQUIRED
    int

    The last index to which to limit the result.

    referencedTable
    Optional
    String

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


final data = await supabase
  .from('cities')
  .select('name, country_id')
  .range(0,3);