docs/1.33/releases-and-maintenance/upgrade-prisma/upgrade-to-1.16-jgp4.mdx
export const meta = { title: "Upgrade to 1.16", position: 50, }
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:
The 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:
javascript-clienttypescript-clientflow-clientgo-clientgraphql-schemaThe 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.Here is an example that generates the Prisma client in JavaScript and the GraphQL schema of the Prisma API:
generate:
- generator: javascript-client
output: ./generated/prisma
- generator: graphql-schema
output: ./generated/prisma
Follow the updated Quickstart, check out one of the examples or read the Prisma client documentation to learn more about the new Prisma client.