Use a NoSQL database
Last updated 7 months ago
Was this helpful?
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.
Shipped provides you with a prisma.schema file suitable for MongoDB.
prisma.schema
Simply replace the prisma.schema with prisma.mongodb.schema
prisma.mongodb.schema
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 .