prisma-zod-generator 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -108,17 +108,19 @@ app.post('/blog', async (req, res, next) => {
108
108
 
109
109
  ## Additional Options
110
110
 
111
- | Option |  Description | Type |  Default |
112
- | ------------------ | ------------------------------------------------------------------------ | --------- | ------------- |
113
- | `output` | Output directory for the generated zod schemas | `string` | `./generated` |
114
- | `isGenerateSelect` | Enables the generation of Select related schemas and the select property | `boolean` | `false` |
111
+ | Option | Description | Type | Default |
112
+ | ------------------- | -------------------------------------------------------------------------- | --------- | ------------- |
113
+ | `output` | Output directory for the generated zod schemas | `string` | `./generated` |
114
+ | `isGenerateSelect` | Enables the generation of Select related schemas and the select property | `boolean` | `false` |
115
+ | `isGenerateInclude` | Enables the generation of Include related schemas and the include property | `boolean` | `false` |
115
116
 
116
117
  Use additional options in the `schema.prisma`
117
118
 
118
119
  ```prisma
119
120
  generator zod {
120
- provider = "prisma-zod-generator"
121
- output = "./generated-zod-schemas"
122
- isGenerateSelect = true
121
+ provider = "prisma-zod-generator"
122
+ output = "./generated-zod-schemas"
123
+ isGenerateSelect = true
124
+ isGenerateInclude = true
123
125
  }
124
126
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-zod-generator",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Prisma 2+ generator to emit Zod schemas from your Prisma schema",
5
5
  "repository": "https://github.com/omar-dulaimi/prisma-zod-generator",
6
6
  "bin": {