Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/basics/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ generator typegraphql {

Then run `npx prisma generate` - this will emit the generated TypeGraphQL classes to the `@generated/type-graphql` folder inside `node_modules`.

## Supported Prisma client providers

`typegraphql-prisma` supports Prisma client generators with these providers:

- `prisma-client-js`
- `prisma-client`
- `prisma-client-ts`

When using `prisma-client` or `prisma-client-ts`, remember to configure explicit `output` path for the Prisma client generator.

## Changing output folder

When you want to emit the generated files into a different folder, you can configure the default output folder via the `output` config option, e.g.:
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ npm i @prisma/client

:::caution
Be aware that `typegraphql-prisma` is designed to work with a selected versions of Prisma.
This generator is designed to work and tested with the features of the `5.0.0` release.
This generator is designed to work and tested with Prisma `6.19.x`.

You can update both `prisma` and `@prisma/client` to a newer version, matching `^5.0.0`, like `5.4.2`, in order to receive important bugfixes.
You can update both `prisma` and `@prisma/client` to a newer version matching `^6.19.0`, in order to receive important bugfixes.
However, make sure you don't use the new features from a newer Prisma version, especially the ones behind a preview flag.

If you encounter a new Prisma feature not supported yet, please check on GitHub issues and create a new issue, if that wasn't already reported, and downgrade the Prisma version, if needed.
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/prisma-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ By default, it checks if the installed Prisma version matches the required one u
So when you try to use other version, like a just published, new minor release (or the `dev` one), you will receive an error about wrong package version, e.g:

```sh
Error: Looks like an incorrect version "3.1.1" of the Prisma packages has been installed.
Error: Looks like an incorrect version "6.18.0" of the Prisma packages has been installed.
'typegraphql-prisma' works only with selected versions, so please ensure
that you have installed a version of Prisma that meets the requirement: "~3.0.1".
that you have installed a version of Prisma that meets the requirement: "^6.19.0".
Find out more about that requirement in docs:
https://prisma.typegraphql.com/docs/basics/prisma-version
```
Expand Down
1 change: 1 addition & 0 deletions docs/basics/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ However, it can also generate some resolvers which might be handy especially on
- createManyAndReturn
- update
- updateMany
- updateManyAndReturn
- delete
- deleteMany
- upsert
Expand Down
Loading