codegen.yml 465 B

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