Retrieve the query as one row
Return data
as a single object instead of an array of objects.
const { data, error } = await supabase
.from('countries')
.select('name')
.limit(1)
.single()
Return data
as a single object instead of an array of objects.
const { data, error } = await supabase
.from('countries')
.select('name')
.limit(1)
.single()
Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.