## Problem
Readers who know the SQL join they want have to work out the matching
embedding syntax by hand. The joins and nesting guide never mentions the
SQL to REST API Translator, which does that conversion, so readers don't
find it.
Related to
[FDBKIN-7994](https://linear.app/supabase/issue/FDBKIN-7994/improve-documentation-and-tooling-for-postgrest-join-syntax)
Closes [DOCS-1729](https://linear.app/supabase/issue/DOCS-1729)
## Solution
In the "Join types and join modifiers" section of
`/guides/database/joins-and-nesting`, a new paragraph in the section's
intro points readers who think in SQL to the translator. The paragraph
says that the translator turns a SQL `select` query into a Data API
request and Supabase JavaScript client code, with SQL joins as embedded
relations. It also says that not every query translates, and names the
translator's join limits: it handles only left and inner joins that
compare columns with `=`, and the request it returns works only when a
foreign key links the two tables. The paragraph follows the intro's
explanation of left joins and `!inner`, so the translator's
left-and-inner limit builds on it, and readers see the shortcut before
the syntax table and the example tabs. Existing text is unchanged.
## How to verify
1. On the docs preview, open `/docs/guides/database/joins-and-nesting`
and go to "Join types and join modifiers".
2. After the paragraph that ends "use `!inner` on the embedded
relation", a paragraph names the SQL to REST API Translator and says
that it converts SQL joins into embedded relations and client code.
3. The link opens `/docs/guides/api/sql-to-rest`.
4. The paragraph says that some queries won't translate.
## Checks
Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and Prettier on the changed
file. All pass. Skipped the docs tests, because they need Docker.
Checked the facts against `apps/docs/content/guides/api/sql-to-rest.mdx`
(the subset note), the translator component in
`packages/ui-patterns/src/SqlToRest/` (cURL, HTTP, and JavaScript
outputs), and the join handling in `@supabase/sql-to-rest` 0.1.6: it
throws on join types other than inner and left and on join conditions
other than `=`, and it does not check for a foreign key.
## Second reader
First read: ready, no blockers, three nits. All three applied: the
paragraph moved after the syntax table, two sentences merged, and the
join limits named. Second read: one blocker. The join-limit sentence had
the Data API as its subject, but the foreign key limit belongs to the
translator, and the Data API also supports computed relationships. Fixed
by making the translator the subject. Third read, after the first
sentence was split in two: one blocker. The translator doesn't check
foreign keys, so a join without one still translates, and the request
then fails. Fixed: the sentence now says the translator handles only
left and inner joins that compare columns with `=`, and that the request
works only when a foreign key links the two tables. Nits left as they
are: the translator outputs joins as flattened spread embeddings
(`...relation(...)`), which this page doesn't explain; "client code"
could read "supabase-js code". Fourth read, after the join-limits
sentence was split in two: ready, no blockers. Nit left as it is: "For
example" introduces translator limits after a sentence about Data API
limits. Fifth read, after the paragraph moved into the section intro:
ready, no blockers, and the placement matches the section's topic. Nits
left as they are: when two foreign keys link the same tables, the
translator's request is ambiguous and fails, because it never adds a
foreign key hint (ambiguous foreign keys are out of scope here); and the
last two sentences could form their own paragraph. Left as follow-ups
outside the scope: the page intro says "data APIs" in lowercase,
`guides/api/sql-to-api.mdx` doesn't link to the translator, and "We can
get…" on the page uses _we_ for the reader.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
---------
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
Closes DOCS-1573
## Problem
Recently, @antlio surfaced that our side nav was visually breaking. This
is caused by a duplicate-id issue.
The docs E2E axe scan reports duplicate `id` attributes as a warning
only, so pages with duplicate IDs ship. A full scan of production guides
found duplicate IDs on 25 of 586 pages.
**Causes:**
- **Repeated headings:** a page uses the same heading text twice, for
example `#### Example` under two sections. Each heading slugs to the
same ID.
- **Pricing partials:** three usage pages put `## Pricing` directly
above a shared partial that starts with its own Pricing heading.
- **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The
Apple secret generator renders `id="undefined-optional"` on each field
label. Each "Build it" listing on the Supabase way page renders
`#build-it`.
## Solution
- **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and
`duplicate-id-aria` to `ENFORCED_RULES`.
- **Repeated headings:** give each later duplicate a
`[#parent-section-heading]` anchor. The first occurrence keeps its ID.
- **Pricing headings:** remove the page heading above the three partials
that start with `## Pricing`. The PITR partial starts with `###
Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2.
- **Mermaid:** prefix the SVG IDs of each diagram with `useId()`.
- **Apple secret generator:** give each field an ID. The label now also
points at its input.
- **Content listings:** add an optional `headingAnchor` to listing
groups, and set it on the repeated "Build it" groups.
- **pg_net:** the `http_delete` signature had `[#post-signature]`,
copied from `http_post`. It is now `[#delete-signature]`.
**Cross-references:** no link in the repo targets a changed ID. Each
first occurrence keeps its ID, so existing links resolve to the same
heading as before.
**Not changed:** the www suite and `packages/ui-patterns`. All fixes
stay in `apps/docs`.
**Verification:**
- Against production,
`/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y
test with `duplicate-id`.
- Against a local docs server, the @a11y test passes on all 28 changed
or affected pages.
**Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it
against the preview before merge.
## Review instructions
1. From `e2e/docs`, run the a11y test against production. See it fail
with `duplicate-id`:
```bash
DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains
PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test
--grep @a11y
```
2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs
preview URL from the Vercel bot comment. See it pass.
3. On the preview, open
`/docs/guides/platform/manage-your-usage/log-drains`. In the table of
contents, select **Pricing** under **Log Drain Events**. See the page
scroll to the second Pricing section.
4. On the preview, open
`/docs/guides/integrations/partner-integration-guide`. See both sequence
diagrams render with arrowheads.
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Docs fix.
## What is the current behavior?
Fixes
[SDK-958](https://linear.app/supabase/issue/SDK-958/docs-incomplete-documentation),
reported via the docs feedback widget on
[joins-and-nesting](https://supabase.com/docs/guides/database/joins-and-nesting).
In the "Specifying the `ON` clause for joins with multiple foreign keys"
section, the Swift example was broken relative to the other language
tabs (JS, Dart, Kotlin, Python, C#):
- The query string aliased the second embed as `scans: scan_id_end`,
which isn't valid PostgREST embed syntax (should be
`end_scan:scans!scan_id_end`).
- The `Shift` struct only declared a single `scans: [Scan]` property
with no `CodingKeys` entry for `start_scan` or `end_scan` — so it never
actually decoded either aliased relation, which is why the reporter
couldn't tell where `start_scan` was supposed to come from.
## What is the new behavior?
- Query now aliases both relations consistently:
`start_scan:scans!scan_id_start (...)` and `end_scan:scans!scan_id_end
(...)`, matching the other language examples.
- `Shift` struct now declares `startScan: Scan` and `endScan: Scan`,
mapped via `CodingKeys` to `start_scan` and `end_scan`.
## Additional context
Docs-only change to a code sample inside
`apps/docs/content/guides/database/joins-and-nesting.mdx`. Verified with
`prettier --check` (mdx lint tool failed locally due to an unrelated
missing native module, `node-pty`).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated the Swift join example to represent separate start and end
scan relationships.
* Revised response field selections and coding keys to match the updated
relationship names.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Added C# examples across API, authentication, database, Realtime, and
Storage guides.
* Expanded authentication coverage for passwordless, phone, anonymous,
identity linking, SSO, sign-out, and social login providers.
* Added database examples for queries, functions, joins, JSON, arrays,
search, PostGIS, and custom schemas.
* Added Realtime examples for broadcasts, presence, subscriptions, and
database changes.
* Added Storage examples for buckets, uploads, downloads,
transformations, CDN purging, and resumable transfers.
* Included C# error-handling guidance and relevant reference links.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Contributes to DOCS-1052
Contributes to DOCS-1057
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Resolves linting warning for "let's" and adds an exception for product
name.
## Tophatting
1. Read the diff and see if changes make sense in context.
2. Run `pnpm lint:mdx`, search for "let's" and see no instances.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated instructional copy across multiple AI, authentication,
database, functions, realtime, storage, and troubleshooting guides to
improve clarity and consistency.
* Replaced conversational phrasing (for example, “Let’s…/Let’s see…”)
with direct imperatives, tightened example lead-ins, and adjusted a few
step explanations for readability.
* Refreshed some tutorial text and code-sample presentation in guides
(no behavioral changes).
* Added/adjusted minor MDX lint guidance in a couple of documents.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
This PR:
- Adds a new Join types and join modifiers section to the
joins-and-nesting guide.
- Documents default left join semantics for embedded relations.
- Explains !inner for inner-join behavior.
- Explains : aliasing and ! join modifiers (!inner, !foreign_key).
- Adds join/filter examples with expected JSON results.
- Includes query examples across JavaScript, Dart, Swift, Kotlin,
Python, and URL.
---------
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
* docs: Adds Dart sample code into using custom schemas guide
* Add Flutter code to OAuth docs
* docs: Add sign out Flutter code to the OAuth guides
* Add Flutter code samples to the auth guides
* docs: Add Flutter code samples to storage docs
* docs: align all Flutter sample code to say Flutter instead of Dart
* docs: sort clean up Flutter and Dart labels
* docs: minor sample code fix
* run prettier
* chore(docs): add Swift guides
* chore(docs): add Swift guides for postgres changes
* chore: fix link identity swift method
* chore(docs): add Swift guides for realtime and storage
* chore: run npm run format
* chore(docs): add Swift example for passing params to `rpc` function
* Adding JS example of multiple foreign keys to the same table
* Fixing a grammar typo
* Update apps/docs/content/guides/database/joins-and-nesting.mdx
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>