prisma-mongodb-upgrade
Skill by prisma
Guides Prisma ORM users on MongoDB projects through the choice between staying on v6 and migrating to Prisma 8. Covers schema, client API, migration and cutover mapping, and notes that Prisma 7 has no MongoDB connector.
Install prisma-mongodb-upgrade
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prisma/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/prisma-mongodb-upgrade ~/.claude/skills/prisma-mongodb-upgradeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prisma/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/prisma-mongodb-upgrade ~/.gemini/antigravity-cli/skills/prisma-mongodb-upgradeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install prisma-mongodb-upgrade in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The prisma-mongodb-upgrade skill is a decision and migration guide for Prisma ORM projects that use the mongodb provider and run v6. It explains that v6 is the terminal classic-ORM major for MongoDB and that Prisma 7 has no MongoDB connector, so the successor path is Prisma 8, where MongoDB support is in Early Access. It frames the choice between migrating to Prisma 8 and staying on v6 where a blocker applies, such as multi-document transactions.
The skill includes reference files for schema mapping, client API mapping, migrations, and a verification checklist for cutover without moving data. It tells the assistant to check the installed version before acting on any Prisma 8 claim, and to follow the synced prisma-8 skill for day-to-day work after switching. It is aimed at MongoDB teams weighing an upgrade to Prisma 8 or deciding to stay on v6.
Written from the project's SKILL.md and checked against it.
What it can do
- Version landscapeShows MongoDB status for Prisma v6, v7 and Prisma 8.
- Stay or migrate decisionGives a decision table based on signals such as transactions and greenfield projects.
- Schema contract mappingMaps v6 MongoDB schema concepts to Prisma 8 contract concepts.
- Client API mappingMaps v6 client calls to Prisma 8 equivalents, including raw escape hatches and transactions.
- Migrations mappingMaps the v6 db push workflow to Prisma 8's plan, migrate, verify and sign flow.
- Cutover verification checklistCovers no-data-moves verification, index parity and a staged round-trip before cutover.
- Stay-on-v6 hygieneLists steps for staying on v6, such as pinning 6.x and tracking release notes.
What you need
- Node.js 22.18+ for Prisma 8 on MongoDB
- TypeScript 5.9+
- MongoDB 8.0+
- mongodb@7 as a peer dependency
Try asking
- Should my MongoDB project stay on Prisma v6 or move to Prisma 8?
- Check my codebase for multi-document $transaction calls before upgrading.
- Map my v6 MongoDB schema to Prisma 8 contract concepts.
Good to know
- Prisma 8 MongoDB support is in Early Access and changes between release candidates.
- Prisma 8 has no MongoDB transaction method yet.
- Prisma 7 has no MongoDB connector, so the v7 upgrade guide does not apply to MongoDB projects.
- The mongodb@7 driver no longer accepts AWS credentials in the connection string.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: prisma-mongodb-upgrade/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/client-api-mapping.md4 KB -
references/decision-stay-or-migrate.md4 KB -
references/migrations-mapping.md4 KB -
references/schema-contract-mapping.md4 KB
Show all 6 files
-
references/verify-cutover-checklist.md3 KB
Alternatives to prisma-mongodb-upgrade
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
prisma-mongodb-upgrade: common questions
Can a MongoDB Prisma project upgrade to Prisma 7?
No. The source states that v7 never ships a MongoDB connector, so MongoDB projects cannot upgrade to Prisma 7.
What is the successor path for Prisma MongoDB projects?
The source says the successor path is Prisma 8, where MongoDB support is in Early Access through @prisma/orm-mongo.
When should a MongoDB project stay on Prisma v6?
The source says staying on the latest v6 remains a legitimate choice where a hard blocker applies, such as the missing Prisma 8 MongoDB transaction method.
How do I install prisma-mongodb-upgrade?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is prisma-mongodb-upgrade free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is prisma-mongodb-upgrade safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to prisma-mongodb-upgrade?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
