summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/codegen.ts
blob: 42bc8be9d4d5c4e5ff184d12be3a50b5896246fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
	schema: 'http://[::]:8000/graphql',
	documents: 'operations.graphql',
	generates: {
		'./src/gql/graphql.ts': {
			plugins: ['typescript', 'typescript-operations', 'typed-document-node']
		}
	},
	config: {
		useTypeImports: true,
		documentMode: 'documentNode',
		scalars: {
			Date: 'string',
			DateTime: 'string'
		}
	}
};
export default config;