-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcodegen.ts
More file actions
31 lines (29 loc) · 768 Bytes
/
codegen.ts
File metadata and controls
31 lines (29 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "http://localhost:8000/graphql/",
documents: [
"src/**/*.{ts,tsx}",
"!src/operations/queries/getInterfaceLanguage.tsx",
"!src/operations/queries/getLangsDicts.tsx",
"!src/operations/queries/getSearchListClickedItem.tsx",
"!src/operations/queries/getSearchMode.tsx",
],
ignoreNoDocuments: true,
generates: {
"./src/graphql/": {
preset: "client",
config: {
documentMode: "documentNode",
useTypeImports: true,
skipTypename: false,
},
},
"./schema.graphql": {
plugins: ["schema-ast"],
config: {
includeDirectives: true,
},
},
},
};
export default config;