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
fromrequired
number
The starting index from which to limit the result, inclusive.
torequired
number
The last index to which to limit the result, inclusive.
__namedParametersrequired
object
No description provided.
foreignTablerequired
undefined
|string
The foreign table to use (for foreign columns).
Properties
Examples
With select()
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.range(0,3)