Home

Limit the query to a range

Limit the query result by from and to inclusively.

Parameters
  • from
    REQUIRED
    number

    The starting index from which to limit the result

  • to
    REQUIRED
    number

    The last index to which to limit the result

  • options
    Optional
    object

    Named parameters


const { data, error } = await supabase
  .from('countries')
  .select('name')
  .range(0, 1)
Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.