Skip to main content
Version: v1-dev

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 data = await supabase
.from('cities')
.select('name, country_id')
.single();

Examples

With select()

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