Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Added more explanation of how .single() works

Mark Burggrafc74edc0ae0e7
diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json
index 0ec28f506b5..dff3309826b 100644
--- a/web/spec/postgrest.json
+++ b/web/spec/postgrest.json
@@ -4264,7 +4264,7 @@
"isExported": true
},
"comment": {
- "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error."
+ "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error.\n\nWithout using `.single()`, results are returned as an array of rows, even if there is only one. When using `.single()` results are returned as an object without an enclosing array."
},
"type": {
"type": "reference",