Limit the number of rows returned
Limit the query result by count
.
Parameters
- countREQUIREDnumber
The maximum number of rows to return
- optionsOptionalobject
Named parameters
foreignTableOptionalstringSet this to limit rows of foreign tables instead of the current table
const { data, error } = await supabase
.from('countries')
.select('name')
.limit(1)