blob: d5339a4a045b3469ca357b8ccb5d48cbc61c9d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import type { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
overwrite: true,
schema: "src/graphql/schema.graphql",
documents: ["src/graphql/*.graphql"],
generates: {
"src/graphql/generated/": {
preset: "client",
plugins: [],
config: {
enumsAsTypes: true,
skipTypename: true,
useTypeImports: true,
scalars: {
DateTime: "string",
},
},
},
},
};
export default config;
|