Upgrade to 1.16
Prisma 1.16 introduces a number of non-breaking changes.
The suffix of datamodel files is changed to
.prisma instead of
.graphql. This is backwards compatible, so
.graphql will continue to work.
Prisma client is an auto-generated library that can be used to consume a Prisma API.
To generate a Prisma client, you need to add the
generate property to your prisma.yml:
generate property is used to specify how and where a Prisma client (or other files) should be generated.
The following generators are built-into the Prisma CLI:
- Prisma client in TypeScript:
- Prisma client in Flow:
- Prisma client in Go:
- GraphQL schema of the Prisma API:
generate property expects a list of objects. There are two properties on these objects:
generator: One of the available generators from the list above.
output: Specifies where the generated files should be located.