thunderhub/codegen.yml
2020-08-14 18:38:02 +02:00

29 lines
682 B
YAML

overwrite: true
schema: 'http://localhost:3000/api/v1'
documents: 'src/graphql/**/*.ts'
generates:
src/graphql/fragmentTypes.json:
plugins:
- fragment-matcher
src/graphql/types.ts:
plugins:
- typescript
- add:
content: '/* eslint-disable */'
src/graphql/:
preset: near-operation-file
presetConfig:
baseTypesPath: types.ts
extension: .generated.tsx
folder: __generated__
config:
withComponent: false
withHOC: false
withHooks: true
reactApolloVersion: 3
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'
- add:
content: '/* eslint-disable */'