range()

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

const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.range(0,3)

Parameters

  • fromrequirednumber

    The starting index from which to limit the result, inclusive.

  • torequirednumber

    The last index to which to limit the result, inclusive.

  • __namedParametersrequiredobject

    No description provided.

      Properties
    • foreignTablerequiredundefined | string

      The foreign table to use (for foreign columns).

Examples

With select()

const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.range(0,3)