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 - add: '/* eslint-disable @typescript-eslint/no-unused-vars */'
16 - typescript-operations
17 - typescript-react-apollo
18 preset: near-operation-file
19 presetConfig:
20 extension: .generated.tsx
21 baseTypesPath: gqlTypes.ts
22 config:
23 withComponent: false
24 withHOC: false
25 withHooks: true
26
27hooks:
28 afterOneFileWrite:
29 - prettier --write