-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.graphql-codegen.yml
37 lines (35 loc) · 1.14 KB
/
.graphql-codegen.yml
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
32
33
34
35
36
37
config: &config
avoidOptionals: true
dedupeFragments: true
enumsAsTypes: true
inputMaybeValue: T | null | undefined
useTypeImports: true
documentMode: documentNode
schema: https://roc22-admin.kotworks.cyou/gql
documents: './src/**/*.graphql'
generates:
./src/graphql/__generated__/types.ts:
plugins:
- add:
content:
- '/* DO NOT EDIT -- This is auto-generated file */'
- '/* eslint-disable */'
- '// @ts-nocheck'
- '// prettier-ignore'
- typescript
config: &config
./src/:
preset: near-operation-file
presetConfig:
extension: .sdk.ts
baseTypesPath: graphql/__generated__/types.ts
plugins:
- add:
content:
- '/* DO NOT EDIT -- This is auto-generated file */'
- '/* eslint-disable */'
- '// @ts-nocheck'
- '// prettier-ignore'
- typescript-operations
- typescript-graphql-request
config: &config