← Back to Pull requests

docs: correct seven Prisma ORM 8 pages that the latest releases made out of date #8946

Closed
unknown closed this pull request without merging on Nov 26, 2026 10:21 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 09:55 UTC
Author

The Prisma ORM 8 docs had seven passages that no longer match what the published tools do. This pull request corrects them. A representative one, on the "Types for your code" page:

Before, the page said update() had no exported type that covers relation changes (nested writes such as creating a user's posts inside the update), so readers typed only the scalar fields and passed the relation change separately:

function updateUser(id: number, data: ScalarUpdateInput<Contract, "User">) {
  return db.orm.public.User.where({ id }).update(data);
}

Since 8.0.0-rc.25 the type exists (prisma/orm#30611), so the page now shows it:

function updateUser(id: number, data: MutationUpdateInput<Contract, "User">) {
  return db.orm.public.User.where({ id }).update(data);
}

await updateUser(1, { name: "Ada", posts: (p) => p.create([{ title: "Hello" }]) });

How we found them

The docs must not work around a defect in a Prisma tool: the tool gets fixed, and the docs passage goes when a release contains the fix. A docs audit (the working document prisma/web#8243, which is never merged) lists every such workaround in docs/orm-docs-audit/workarounds-inventory.md on its branch. We checked the 68 entries owned by prisma/orm, the prisma CLI and create-prisma against what is published today: the ORM packages 8.0.0-rc.25, the prisma CLI 8.0.0-rc.35 and create-prisma 0.14.10. For each entry we read the code at the release tag, and for most we ran the published packages against a local PostgreSQL 15.

Two kinds of passage came out of that check. Some described a workaround the tool no longer needs. Others, found while checking, state behaviour that changed, so the sentence is now false. Only the latest docs change; the v6 and v7 folders describe older releases and are untouched.

Statements that are now false

All paths are under apps/docs/content/docs/.

  • orm/fundamentals/types.mdx: the example above. The table that maps each Prisma ORM 7 type to its Prisma ORM 8 equivalent now maps Prisma.UserUpdateInput to MutationUpdateInput.

  • orm/reference/orm-client.mdx, the update() notes: on PostgreSQL, passing a function to update() instead of an object of values, or passing an empty object, now returns the matched row unchanged. The page said both return null. We saw this when running rc.25; we did not pin down which pull request changed it.

  • orm/index.mdx: it said MariaDB "has no client for your app yet". rc.25 ships one, mariadb() from @prisma/orm-mariadb/runtime (prisma/orm#31082), and the supported databases page already says so.

  • orm/supported-versions.mdx: it said orm init always overwrites module and moduleResolution in an existing tsconfig.json with preserve and bundler. Since prisma/orm#30360 it keeps them when they are already bundler settings, and keeps nodenext in a package with "type": "module". Only a CommonJS project that used nodenext has to set them back to nodenext. The paragraph now says that and links to the CommonJS section of the orm init page.

  • postgres/troubleshooting.mdx: it said npx prisma init --db fails because npx cached an old CLI. The Prisma ORM 8 CLI rejects the flag on purpose: init no longer creates a database, and the error (code CLI.V7_FLAG, the CLI's code for a Prisma 7 flag) names the replacement. The section now gives that command, npx prisma postgres create <name>, and still shows npx prisma@prev init --db for readers who stay on Prisma ORM 7.
  • Steps the tools no longer need

    These two are about the db ref: the record, kept in the database and in migrations/app/refs/db.json, of which contract the development database is at. migration plan starts from it.

  • studio/prisma-next.mdx (the Studio walkthrough for Prisma ORM 8): removes a warning that migration plan without a db ref recreates every table. At that step the reader's project already has migrations, and with migrations and no db ref the CLI refuses to plan (MIGRATION.PLAN_ORIGIN_UNKNOWN) instead of planning from empty. The ref is also no longer missing at that step, because since prisma/orm#31169 the db migrate of the step before advances it.

  • (index)/prisma-orm/add-to-existing-project/mongodb.mdx: drops --advance-ref db from two db update commands. db update advances the db ref by default unless you point it at another database with --db, so the flag changed nothing. The recovery steps around it stay: this page's project has no migrations yet, and with no migrations and no db ref, migration plan still plans from an empty database.
  • The CLI version the pages name

    prisma 8.0.0-rc.36 was published while this pull request was open, and the docs check for pinned versions then failed on six pages that named 8.0.0-rc.35. They now name 8.0.0-rc.36. It pins the same ORM toolchain, 8.0.0-rc.25, so nothing above changes.

    What stays

    Of the 68 entries, this pull request resolves three (the Studio warning, the orm init sentence and the MutationUpdateInput one). The other four changes are the false statements found along the way. Every other entry's defect is still in the published release, so its workaround stays; that includes every create-prisma entry. The inventory on prisma/web#8243 now records the result for each entry, and the defects are fixed in their own repositories.

    Three rounds of fresh readers reviewed the changed passages for wording. The internal link check and spellcheck pass.

    Alternatives considered

  • Also remove workarounds whose fix is merged but not released. Readers install the published packages, so the docs follow releases, not main.

  • Delete the troubleshooting section. Readers who run the Prisma ORM 7 command still hit the error, so the section now explains it.
  • Agent: actaeon-80

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Documentation
    Clarified ORM 8 update-input types and how update() behaves with callback, empty, and unchanged values.
    Updated MariaDB preview support information to include running migrations and reading and writing data.
    Refined TypeScript setup guidance and added options for resolving the Prisma ORM 8 CLI.V7_FLAG error.
    Updated MongoDB migration instructions and Prisma Next migration guidance.
    Refreshed Prisma ORM version examples and release-status information to reflect 8.0.0-rc.36.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: wmadden-electric Review duration: 25m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8946"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%
    Repository