MongoDB

Use a NoSQL database

With the Prisma ORM you can use MongoDB as your main database.

However, there are small differences in the way the schema needs to be defined.

MongoDB Prisma Schema

Shipped provides you with a prisma.schema file suitable for MongoDB.

Simply replace the prisma.schema with prisma.mongodb.schema

terminal
cd prisma
mv schema.prisma schema.sql.prisma
cp schema.mongodb.prisma schema.prisma

To learn more about the Prisma usage with MongoDB check the official documentation.

Last updated