diff options
Diffstat (limited to 'frontend/graphql-codegen.ts')
| -rw-r--r-- | frontend/graphql-codegen.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/graphql-codegen.ts b/frontend/graphql-codegen.ts new file mode 100644 index 0000000..ddba3b1 --- /dev/null +++ b/frontend/graphql-codegen.ts @@ -0,0 +1,15 @@ +import type { CodegenConfig } from "@graphql-codegen/cli"; + +const config: CodegenConfig = { + overwrite: true, + schema: "../common/graphql/schema.graphql", + documents: "src/**/*.tsx", + generates: { + "src/graphql": { + preset: "client", + plugins: [], + }, + }, +}; + +export default config; |
