single()

只从结果中检索一条记录。结果必须是一行(例如,使用limit),否则会导致错误。

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

Examples#

使用 select()#

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