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.

JavaScript: single

Return data as a single object instead of an array of objects.

Query result must be one row (e.g. using .limit(1)), otherwise this returns an error.

Examples

With `select()`

const { data, error } = await supabase
  .from('characters')
  .select('name')
  .limit(1)
  .single()