1schema: '../graphql/schema/*.graphql'
2overwrite: true
3documents: src/**/*.graphql
4generates:
5 ./src/fragmentTypes.js:
6 plugins:
7 - fragment-matcher
8 config:
9 module: es2015
10 ./src/gqlTypes.ts:
11 plugins:
12 - typescript
13 ./src/:
14 plugins:
15 - typescript-operations
16 - typescript-react-apollo
17 preset: near-operation-file
18 presetConfig:
19 extension: .generated.tsx
20 baseTypesPath: gqlTypes.ts
21 config:
22 withComponent: false
23 withHOC: false
24 withHooks: true
25
26config:
27 documentMode: documentNode
28
29hooks:
30 afterOneFileWrite:
31 - prettier --write