Prisma 2
Prisma 2 is the successor of Prisma 1. If you start a fresh project than you should start with Prisma 2 as it makes your life way easier, e.g. you don't have to deploy a Prisma instance anymore, like in v1, and you can use a typesafe code-first approach to create your schema. If you want to upgrade, here is the migration guide.
Prisma 2
Prisma 2 supports the following databases:
- PostgreSQL
- MySQL
- SQLite
- SQL Server (Preview)
- Soon also Mongodb
You can use Prisma 2 together with nexusjs to generate your schema code-first. Some useful recipes are here.
Articles
- Complete Introduction to Fullstack, Type-Safe GraphQL
- Code-first vs Schema-first
- Creating a Node.js GraphQL server using Prisma 2