Skip to main content
Version: v1

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.

  • foreignTablerequiredobject

    The foreign table to use (for foreign columns).

      Properties
    • foreignTableoptionalstring

      No description provided.

Examples

With select()

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