Skip to content

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

docs: Clarify count options

Steve Chavez3a962bb1cbf5
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 1b7b505bb52..4c172c93ea7 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -535,12 +535,12 @@ pages:
- name: Querying with count option
description: |
You can get the number of rows by using the count option.
- Allowed values for count option are `null`, `exact`, `planned` and `estimated`.
+ Allowed values for count option are `null`, [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count).
js: |
```js
const { data, error, count } = await postgrest
.from('cities')
- .select('name', { count: 'exact' })
+ .select('name', { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true }
```
- name: Querying JSON data
description: |