Skip to content

Commit 2ad664d

Browse files
authored
Add note about prisma-json-types-generator (#1617)
1 parent 5eb30d0 commit 2ad664d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/config/config-file.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export default defineConfig({
446446
});
447447
```
448448

449-
If you have multiple `generator` statements defined in your schema file, you can pass in the `clientGenerator` option to specify the `prisma-client-js` generator, which will prevent other generators from being generated:
449+
If you have multiple `generator` statements defined in your schema file, you can pass in the `clientGenerator` option to specify the `prisma-client-js` generator, which will prevent other generators from being generated. Some examples where you may need to do this include when using the `prisma-kysely` or `prisma-json-types-generator` generators.
450450

451451
<CodeGroup>
452452

@@ -468,6 +468,10 @@ generator kysely {
468468
enumFileName = "enums.ts"
469469
fileName = "types.ts"
470470
}
471+
472+
generator json {
473+
provider = "prisma-json-types-generator"
474+
}
471475
```
472476

473477
```ts trigger.config.ts

0 commit comments

Comments
 (0)