diff options
Diffstat (limited to 'frontend/graphql-codegen.ts')
| -rw-r--r-- | frontend/graphql-codegen.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontend/graphql-codegen.ts b/frontend/graphql-codegen.ts index ddba3b1..af62625 100644 --- a/frontend/graphql-codegen.ts +++ b/frontend/graphql-codegen.ts @@ -3,11 +3,19 @@ import type { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { overwrite: true, schema: "../common/graphql/schema.graphql", - documents: "src/**/*.tsx", + documents: ["src/**/*.tsx", "src/**/*.ts", "src/**/*.graphql"], generates: { - "src/graphql": { + "src/graphql/generated/": { preset: "client", plugins: [], + config: { + enumsAsTypes: true, + skipTypename: true, + useTypeImports: true, + scalars: { + DateTime: "string", + }, + }, }, }, }; |
