Limit the number of rows returned
Limits the result with the specified count
.
Parameters
count
REQUIRED
numberThe maximum no. of rows to limit to.
__namedParameters
Optional
objectforeignTable
REQUIRED
undefined | stringThe foreign table to use (for foreign columns).
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.limit(1)