prisma-mongodb-upgrade

Guides Prisma v6 MongoDB projects through migration decisions to Prisma Next.

Updated Jul 27, 2026
One-click install
npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-mongodb-upgrade-soares-b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-mongodb-upgrade
Source: https://github.com/Soares-B/Livia-Lace/tree/main/livia-lace/.windsurf/skills/prisma-mongodb-upgrade
Command: npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-mongodb-upgrade-soares-b

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? MongoDB projects on Prisma v6 have no upgrade path to Prisma 7 because v7 ships no MongoDB connector, leaving teams without clear guidance on whether to migrate to Prisma Next or stay on v6. ## Core Features & Use Cases - Decision Framework: Provides a blocker-based decision table covering transactions usage, MongoDB server version, and Early Access tolerance to choose between migrating to Prisma Next or staying on v6. - API and Schema Mapping: Maps v6 client calls, raw queries, composite types, and schema concepts to Prisma Next contract and ORM equivalents, including storage-name addressing rules. - Cutover Verification: Supplies a no-data-moves checklist covering index parity, validator impact, transaction inventory, and staged read-only soak before switching writes. - Use Case: A team running Prisma 6 with provider = "mongodb" asks about upgrading to Prisma 7; the Skill explains v7 is impossible, checks the codebase for $transaction usage, and walks them through a staged Prisma Next migration. ## Quick Start Ask the assistant to evaluate whether your Prisma v6 MongoDB project should migrate to Prisma Next and to check the codebase for migration blockers.

Frequently Asked Questions about prisma-mongodb-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Can I upgrade Prisma 6 MongoDB to Prisma 7?

No, Prisma 7 has no MongoDB connector, so upgrading from v6 is impossible. The forward path is Prisma Next, where MongoDB support is in Early Access, or staying on the latest v6 maintenance line.

How do I migrate a Prisma v6 MongoDB project to Prisma Next?

Author a Next contract describing existing collections, map client calls to the new ORM and mongoRaw lanes, then run plan, migrate, verify, and sign against the same database. No data moves; only the client and workflow change.

Does Prisma Next support MongoDB transactions?

The Prisma Next Mongo façade does not wrap db.transaction yet, but the underlying mongodb driver is directly available as a peer dependency. Multi-document atomicity works today via driver sessions with startSession and withTransaction on a replica set.

What MongoDB server version does Prisma Next require?

Prisma Next's Mongo target requires MongoDB 8.0 or later and mongodb@^7 installed as a user-supplied peer dependency. Prisma v6 tolerated older server versions, so check the server version before planning a migration.

When should I stay on Prisma v6 instead of migrating?

Stay on v6 when the codebase relies on multi-document $transaction flows you cannot yet port to driver sessions, or when the team cannot absorb pre-1.0 breaking changes between Next minors. Pin the latest 6.x, keep taking patches, and re-evaluate at GA.