For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

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("instruments")
  .select("name")
  .limit(1)
  .single()
  .execute()