thunderhub/codegen.yml

23 lines
529 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:
- typescript
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
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'