1import type { CodegenConfig } from '@graphql-codegen/cli'
2
3const config: CodegenConfig = {
4 schema: '../api/graphql/schema/*.graphql',
5 documents: 'src/graphql/**/*.graphql',
6 generates: {
7 'src/__generated__/graphql.ts': {
8 plugins: [
9 'typescript',
10 'typescript-operations',
11 'typescript-react-apollo',
12 ],
13 config: {
14 withHooks: true,
15 withComponent: false,
16 withHOC: false,
17 scalars: {
18 Time: 'string',
19 Hash: 'string',
20 CombinedId: 'string',
21 Color: '{ R: number; G: number; B: number }',
22 },
23 },
24 },
25 },
26}
27
28export default config