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