Skip to content

docs(docs): fix broken code examples in Prisma Client reference - #8600

Merged
wmadden merged 6 commits into
prisma:mainfrom
mayur-dhavan:patch-1
Oct 28, 2026
Merged

wmadden merged 6 commits into
prisma:mainfrom
mayur-dhavan:patch-1

Conversation

@mayur-dhavan

@mayur-dhavan mayur-dhavan commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The Prisma Client reference pages (v6 and v7) contain code
examples that cannot be parsed as written, plus one stray code
fence:

  • v6 page: a stray ```` fence line after the nativeDistinct
    example makes the whole "Nested queries" section intro and the
    first nested-create example render as a literal code block.
  • Six relation-filter examples on each page (some, every,
    two none variants, is, isNot) are missing the closing
    ) of findMany(.
  • The _relevance orderBy example on each page is missing the
    closing } of the outer options object.
  • The connectOrCreate profile example on each page is missing
    the closing } of the outer options object.

Each defect was confirmed verbatim on the live prisma.io pages,
and each fixed example was verified to parse with the TypeScript
compiler. Docs only.

Summary by CodeRabbit

  • Documentation
    • Corrected syntax in Prisma Client reference examples for ORM v6 and v7, including ordering, relation filters, and connectOrCreate.
    • Fixed an extra code-fence delimiter in the v6 reference.

Copilot AI balanced review requested due to automatic review settings October 25, 2026 14:20
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

@mayur-dhavan is attempting to deploy a commit to the Prisma Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
vercel Bot temporarily deployed to Preview – handbook October 25, 2026 14:20 Inactive
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Oct 25, 2026 2:20pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0099ee0-5183-4f2c-8969-2e475384f679
Commits

Reviewing files that changed from the base of the PR and between 53d580a and 04c222c.

Files selected for processing: 2
  • apps/docs/content/docs/orm/v6/reference/prisma-client-reference.mdx
  • apps/docs/content/docs/orm/v7/reference/prisma-client-reference.mdx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The ORM v6 and v7 Prisma Client reference pages have corrected syntax in ordering, nested relation, and relation-filter examples. The v6 page also has an extra code-fence delimiter removed.

Changes

Prisma Client reference examples

Layer / File(s) Summary
Ordering, nested relation, and code-fence syntax
apps/docs/content/docs/orm/v6/reference/prisma-client-reference.mdx, apps/docs/content/docs/orm/v7/reference/prisma-client-reference.mdx
The _relevance and connectOrCreate examples have corrected delimiters. The v6 nativeDistinct section has an extra code-fence delimiter removed.
Relation-filter query closures
apps/docs/content/docs/orm/v6/reference/prisma-client-reference.mdx, apps/docs/content/docs/orm/v7/reference/prisma-client-reference.mdx
The findMany() calls in the some, every, none, is, and isNot examples now close with }).

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: ankur-arch

Merge Risk: Minimal · up to 04c22

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: fixing broken code examples in the Prisma Client reference documentation.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@wmadden
wmadden merged commit 23e781a into prisma:main Oct 28, 2026
3 of 7 checks passed

This branch was previously deployed

1 inactive deployment
Preview – handbook — 04c222cb Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants