single()
只从结果中检索一条记录。结果必须是一行(例如,使用limit),否则会导致错误。
final res = await supabase
.from('cities')
.select('name, country_id')
.single()
.execute();
Examples
使用select()
final res = await supabase
.from('cities')
.select('name, country_id')
.single()
.execute();