docs: correct seven Prisma ORM 8 pages that the latest releases made out of date #8946
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
wmadden-electric
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:Since
8.0.0-rc.25the type exists (prisma/orm#30611), so the page now shows it: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.mdon its branch. We checked the 68 entries owned by prisma/orm, theprismaCLI andcreate-prismaagainst what is published today: the ORM packages8.0.0-rc.25, theprismaCLI8.0.0-rc.35andcreate-prisma0.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
v6andv7folders 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 mapsPrisma.UserUpdateInputtoMutationUpdateInput.orm/reference/orm-client.mdx, theupdate()notes: on PostgreSQL, passing a function toupdate()instead of an object of values, or passing an empty object, now returns the matched row unchanged. The page said both returnnull. 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 saidorm initalways overwritesmoduleandmoduleResolutionin an existingtsconfig.jsonwithpreserveandbundler. Since prisma/orm#30360 it keeps them when they are already bundler settings, and keepsnodenextin a package with"type": "module". Only a CommonJS project that usednodenexthas to set them back tonodenext. The paragraph now says that and links to the CommonJS section of theorm initpage.postgres/troubleshooting.mdx: it saidnpx prisma init --dbfails because npx cached an old CLI. The Prisma ORM 8 CLI rejects the flag on purpose:initno longer creates a database, and the error (codeCLI.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 showsnpx prisma@prev init --dbfor readers who stay on Prisma ORM 7.Steps the tools no longer need
These two are about the
dbref: the record, kept in the database and inmigrations/app/refs/db.json, of which contract the development database is at.migration planstarts from it.studio/prisma-next.mdx(the Studio walkthrough for Prisma ORM 8): removes a warning thatmigration planwithout adbref recreates every table. At that step the reader's project already has migrations, and with migrations and nodbref 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 thedb migrateof the step before advances it.(index)/prisma-orm/add-to-existing-project/mongodb.mdx: drops--advance-ref dbfrom twodb updatecommands.db updateadvances thedbref 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 nodbref,migration planstill plans from an empty database.The CLI version the pages name
prisma8.0.0-rc.36was published while this pull request was open, and the docs check for pinned versions then failed on six pages that named8.0.0-rc.35. They now name8.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 initsentence and theMutationUpdateInputone). 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 everycreate-prismaentry. 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
main.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_FLAGerror.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 -->