Labsco
prisma logo

prisma-database-setup-mongodb

✓ Official8

by prisma · part of prisma/cursor-plugin

MongoDB Setup. Reference when using this Prisma feature.

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the prisma/cursor-plugin package — works on its own, and pairs well with its siblings.

MongoDB Setup. Reference when using this Prisma feature.

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by prisma

MongoDB Setup. Reference when using this Prisma feature. npx skills add https://github.com/prisma/cursor-plugin --skill prisma-database-setup-mongodb Download ZIPGitHub8

2. Environment Variable

In .env:

Copy & paste — that's it
DATABASE_URL="mongodb+srv://user:[email protected]/mydb?retryWrites=true&w=majority"

Migrations vs Introspection

  • No Migrations: MongoDB is schema-less. prisma migrate commands do not work.

  • db push: Use prisma db push to sync indexes and constraints.

  • db pull: Use prisma db pull to generate schema from existing data (sampling).