Skip to content

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

fix: broken build on docs - missing links

Paul Copplestone726e6309987f
diff --git a/web/README.md b/web/README.md
new file mode 100644
index 00000000000..20ccfd87c53
--- /dev/null
+++ b/web/README.md
@@ -0,0 +1,11 @@
+# Supabase Docs
+
+
+### Contributing to the specs
+
+- `cd /web/spec/`
+- run `make` which will pull the latest TSDoc with your updates
+- add your comments to `supabase.yml` | `postgrest.yml` | `gotrue.yml` | `realtime.yml`
+- run `npm run gen:supabase` inside the /specs folder which will generate the Docusaurus pages
+- run `npm run build` to make sure the build is working
+- submit your PR
diff --git a/web/docs/postgrest/client/delete.mdx b/web/docs/postgrest/client/delete.mdx
index 7eece8f070f..6db4a9f9dc6 100644
--- a/web/docs/postgrest/client/delete.mdx
+++ b/web/docs/postgrest/client/delete.mdx
@@ -83,6 +83,27 @@ If `true`, return the deleted row(s) in the response.
</li>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
</ul>
</li>
diff --git a/web/docs/postgrest/client/insert.mdx b/web/docs/postgrest/client/insert.mdx
index db8558484c9..6c122aaf4e2 100644
--- a/web/docs/postgrest/client/insert.mdx
+++ b/web/docs/postgrest/client/insert.mdx
@@ -147,6 +147,27 @@ By specifying the `on_conflict` query parameter, you can make UPSERT work on a c
</li>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
</ul>
</li>
diff --git a/web/docs/postgrest/client/rpc.mdx b/web/docs/postgrest/client/rpc.mdx
index 485cb7519d5..7209540013c 100644
--- a/web/docs/postgrest/client/rpc.mdx
+++ b/web/docs/postgrest/client/rpc.mdx
@@ -199,8 +199,8 @@ const { data, error } = await postgrest
### With filters.
Stored procedures that return tables can also be combined with
-[Modifiers](/docs/postgrest/client/using-modifiers) and
-[Filters](/docs/postgrest/client/using-filters).
+`modifiers` and
+`filters`.
<Tabs
@@ -225,6 +225,39 @@ const { data, error } = await postgrest
```
+</TabItem>
+
+</Tabs>
+
+### With count option
+
+You can specify a count option to get the row count along with your data.
+Allowed values for count option are `null`, `exact`, `planned` and `estimated`.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="libraries"
+ values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error, count } = await postgrest
+ .from('cities')
+ .rpc('hello_world', { count: 'exact' })
+}
+```
+
+
+</TabItem>
+<TabItem value="py">
+
+```py
+# Not yet implemented
+```
+
+
</TabItem>
</Tabs>
\ No newline at end of file
diff --git a/web/docs/postgrest/client/select.mdx b/web/docs/postgrest/client/select.mdx
index e601e44d1e2..5080960f9cc 100644
--- a/web/docs/postgrest/client/select.mdx
+++ b/web/docs/postgrest/client/select.mdx
@@ -61,6 +61,73 @@ The columns to retrieve, separated by commas.
</li>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ head
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+When set to true, select will void data.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
</ul>
@@ -209,6 +276,68 @@ const { data, error } = await postgrest
```
+</TabItem>
+
+</Tabs>
+
+### Selecting specific columns
+
+You can select specific fields from your tables.
+
+<Tabs
+ defaultValue="js"
+ groupId="libraries"
+ values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await postgrest
+ .from('cities')
+ .select('name')
+```
+
+
+</TabItem>
+<TabItem value="py">
+
+```py
+# Not yet implemented
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Querying with count option
+
+You can get the number of rows by using the count option.
+Allowed values for count option are `null`, `exact`, `planned` and `estimated`.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="libraries"
+ values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error, count } = await postgrest
+ .from('cities')
+ .select('name', { count: 'exact' })
+```
+
+
+</TabItem>
+<TabItem value="py">
+
+```py
+# Not yet implemented
+```
+
+
</TabItem>
</Tabs>
diff --git a/web/docs/postgrest/client/update.mdx b/web/docs/postgrest/client/update.mdx
index 2d0fed1d3ca..36bb20eea98 100644
--- a/web/docs/postgrest/client/update.mdx
+++ b/web/docs/postgrest/client/update.mdx
@@ -104,6 +104,27 @@ By default the updated record is returned. Set this to 'minimal' if you don't ne
</li>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
</ul>
</li>
diff --git a/web/spec/postgrest.yml b/web/spec/postgrest.yml
index f54ffed8b0b..2ddd2e879cb 100644
--- a/web/spec/postgrest.yml
+++ b/web/spec/postgrest.yml
@@ -337,8 +337,8 @@ pages:
- name: With filters.
description: |
Stored procedures that return tables can also be combined with
- [Modifiers](/docs/postgrest/client/using-modifiers) and
- [Filters](/docs/postgrest/client/using-filters).
+ `modifiers` and
+ `filters`.
js: |
```js
const { data, error } = await postgrest