Skip to main content

single()

Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error.

final res = await supabase
.from('cities')
.select('name, country_id')
.single()
.execute();

Examples

With select()

final res = await supabase
.from('cities')
.select('name, country_id')
.single()
.execute();