thunderhub/codegen.yml
Anthony Potdevin 97b12dd5df
chore: 🔧 update deps
2020-08-05 21:24:46 +02:00

23 lines
557 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:
- typescript
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'