Repository navigation
docs(orm): Core concepts explains each piece in the order a reader meets it - #8354
Merged
Merged
Conversation
The page follows the mental model: the contract and the schema, emit, the signature, queries, migrations (the everyday change, planning, the db ref, adopting an existing database, db update), the command table, the pieces underneath, and a closing glossary. Every command claim was checked against the cli reference pages; where mental-model.md disagreed, the reference page won. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
wmadden-electric
added a commit
that referenced
this pull request
Sep 30, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Contributor
🍈 Lychee Link Check Report63 links: ✅ All links are working!Full Statistics Table
|
…ref, and db update Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
wmadden
approved these changes
Sep 30, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Core concepts page (
/orm/core-concepts) is the one page that explains how Prisma ORM 8 fits together. Today its section headings run in vocabulary order:After this change they run in the order a developer meets each piece, and each section says what the piece does for you:
The decision
The page explains each piece when the reader needs it, says what it buys them, and names the Prisma ORM 7 thing it replaces. Every command claim on it matches the command's reference page under
/cli. The reader it is written for is a developer who used Prisma ORM 7 for two years and has never seen version 8.Why
Reader feedback on the Prisma ORM 8 docs says they read as if a model wrote them: source-code vocabulary, mechanism instead of action, several ideas per sentence. On this page the symptom was order: a reader met "hash", "plan", and "codec" before learning what a contract is for, and the everyday workflow (edit the contract, emit, plan, migrate) appeared only in the last section. The old page also carried a few claims that the reference pages contradict.
What changed, step by step
dbref (with a table of which commands move it), adopting an existing database, anddb updatefollow in that order.db verifyin the deploy pipeline is the check that stops a deploy.db init,db sign,db migrate, anddb update.db initis not only for an empty database; it adds what is missing and stops on a destructive change.db migrateis safe to rerun on PostgreSQL because the run is one transaction; MongoDB has no such transaction.contract emitand when a query is built, not at startup.DateTimefield comes back as aTemporal.Instant, not a JavaScriptDate.migration plan(includingMIGRATION.PLAN_ORIGIN_UNKNOWN), the adoption sequence with the automatic baseline, how to get fromdb updateback to a committed migration, and a command table with what each of eleven commands reads and writes and when you run it.How it was checked
dbref describes several developers' databases, how merged branches become a path fordb migrate, and for the contents ofdb.tsandprisma.config.ts. The linked pages (the migration graph, generating a migration,orm init) answer those, and the page stays a concepts page rather than a tutorial.lint:linksreports 0 errors; the docs app tests pass (70).Alternatives considered
Context
Slice 05 of the Prisma ORM 8 docs restructure. The page is written from the audit's source document,
docs/orm-docs-audit/mental-model.md, and the spec isdocs/orm-docs-audit/slices/05-core-concepts-from-mental-model/spec.md, both on thedocs/orm8-docs-audit-designbranch (#8243). Where the source document disagreed with a reference page, the reference page won, and the corrections are recorded at the end of the source document.Agent: gulliver-20
🤖 Generated with Claude Code