Skip to main content

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:

You can use Prisma 2 together with nexusjs to generate your schema code-first. Some useful recipes are here.

Articles

  1. Complete Introduction to Fullstack, Type-Safe GraphQL
  2. Code-first vs Schema-first
  3. Creating a Node.js GraphQL server using Prisma 2

References

  1. Prisma 2 Beta
  2. Prisma 2.0