Loading...
Loading...
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb", "prisma 7 mongodb", "mongodb prisma migration", "prisma next mongodb".
npx skill4agent add prisma/skills prisma-mongodb-upgradeprisma-upgrade-v7| Version | MongoDB status |
|---|---|
| Prisma ORM v6 | Fully supported ( |
| Prisma ORM v7 | No MongoDB connector — not an option, ever |
| Prisma Next | MongoDB support in Early Access, actively developed, GA planned after Postgres — the successor path for MongoDB projects |
| Signal | Direction |
|---|---|
| No blockers below apply | Migrate to Next; run the |
| Greenfield / prototype / internal tool | Migrate to Next |
Codebase uses multi-document transactions ( | Plan raw-driver session equivalents first (see |
| Team cannot absorb pre-1.0 breaking upgrades between minors | Stay on v6 until GA |
| Risk-averse but interested | Run a staged Next round-trip on a copy (see |
url = env("DATABASE_URL")db pushprisma-database-setup| Reference | What it covers |
|---|---|
| The full decision framing, blocker checks, and stay-hygiene detail |
| v6 schema ( |
| v6 client calls → Next equivalents, incl. raw escape hatches and transactions — names map, parity does not |
| v6 |
| No-data-moves verification: same DB, index parity, staged round-trip before cutover |
a2791c5dd59d579b4b3052942ae7f8fe5e2ee852@prisma-next/*mongodb@^7init