Skip to content

Commit 89193e1

Browse files
authored
Merge pull request #361 from erwan-joly/main
Add a note for client-preset support
2 parents e90e1a5 + b3c3908 commit 89193e1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,19 @@ export function ExampleInputSchema(): z.ZodSchema<ExampleInput> {
275275

276276
#### other schema
277277

278-
Please see [example](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/tree/main/example) directory.
278+
Please see [example](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/tree/main/example) directory.
279+
280+
## Notes
281+
282+
Their is currently a compatibility issue with the client-preset. A workaround for this is to split the generation into two (one for client-preset and one for typescript-validation-schema).
283+
284+
```yml
285+
generates:
286+
path/to/graphql.ts:
287+
plugins:
288+
- typescript-validation-schema
289+
/path/to/graphql/:
290+
preset: 'client',
291+
plugins:
292+
...
293+
```

0 commit comments

Comments
 (0)