From b3c3908df5c50ab4c47f47d406904d0c850008c5 Mon Sep 17 00:00:00 2001 From: erwan-joly Date: Thu, 27 Apr 2023 13:28:28 +1200 Subject: [PATCH] Add a note for client-preset support --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb9d8690..5794a7b0 100644 --- a/README.md +++ b/README.md @@ -275,4 +275,19 @@ export function ExampleInputSchema(): z.ZodSchema { #### other schema -Please see [example](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/tree/main/example) directory. \ No newline at end of file +Please see [example](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/tree/main/example) directory. + +## Notes + +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). + +```yml +generates: + path/to/graphql.ts: + plugins: + - typescript-validation-schema + /path/to/graphql/: + preset: 'client', + plugins: + ... +``` \ No newline at end of file