Swift: Retrieve one row of data

By default PostgREST returns all JSON results in an array, even when there is only one item, use single() to return the first object unenclosed by an array.

Examples

With `select()`

try await supabase
  .from("countries")
  .select("name")
  .limit(1)
  .single()
  .execute()