codegen.yml 436 B

12345678910111213141516
  1. overwrite: true
  2. schema: 'backend/schema.graphql'
  3. documents: 'frontend/src/**/*.graphql'
  4. generates:
  5. frontend/src/gql/index.tsx:
  6. config:
  7. withHooks: true
  8. withComponent: false
  9. withHOC: false
  10. apolloReactHooksImportFrom: '@apollo/client'
  11. gqlImport: '@apollo/client#gql'
  12. plugins:
  13. - add: '/* eslint-disable */'
  14. - 'typescript'
  15. - 'typescript-operations'
  16. - 'typescript-react-apollo'