thunderhub/codegen.yml

29 lines
682 B
YAML
Raw Normal View History

2020-04-16 15:24:27 +02:00
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__
2020-04-16 15:24:27 +02:00
config:
withComponent: false
withHOC: false
withHooks: true
2020-08-05 21:24:46 +02:00
reactApolloVersion: 3
2020-04-16 15:24:27 +02:00
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'
- add:
content: '/* eslint-disable */'