1schema: '../api/graphql/schema/*.graphql'
 2overwrite: true
 3documents: src/**/*.graphql
 4generates:
 5  ./src/fragmentTypes.ts:
 6    plugins:
 7      - fragment-matcher
 8    config:
 9      module: es2015
10      apolloClientVersion: 3
11  ./src/gqlTypes.ts:
12    plugins:
13      - typescript
14  ./src/schema.json:
15    plugins:
16      - introspection
17  ./src/:
18    plugins:
19      - add:
20          content: '/* eslint-disable @typescript-eslint/no-unused-vars, import/order */'
21      - typescript-operations
22      - typescript-react-apollo
23    preset: near-operation-file
24    presetConfig:
25      extension: .generated.tsx
26      baseTypesPath: gqlTypes.ts
27    config:
28      withComponent: false
29      withHOC: false
30      withHooks: true
31
32hooks:
33  afterAllFileWrite:
34    - prettier --write