-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yaml
42 lines (38 loc) · 996 Bytes
/
codegen.yaml
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
38
39
40
41
42
schema: graphql/schema.graphql
documents: src/**/*.gql
generates:
src/operations/types/types.ts:
plugins:
- typescript:
onlyOperationTypes: true
declarationKind: interface
enumsAsTypes: true
avoidOptionals: false
src/:
preset: near-operation-file
presetConfig:
baseTypesPath: operations/types/types.ts
extension: Operations.ts
folder: ../
plugins:
- typescript-operations:
preResolveTypes: true
flattenGeneratedTypes: true
- typescript-urql:
withComponent: false
withHooks: true
documentMode: external
- typescript-graphql-request:
documentMode: string
rawRequest: false
config:
omitOperationSuffix: false
operationResultSuffix: Data
documentVariableSuffix: ''
avoidOptionals: true
config:
skipTypename: true
namingConvention: keep
hooks:
afterAllFileWrite:
node scripts/postgen.js