1
0

codegen.config.yml 462 B

1234567891011121314151617181920212223242526
  1. overwrite: true
  2. schema: ${ORION_URL}
  3. documents:
  4. - './src/api/*.graphql'
  5. config:
  6. scalars:
  7. DateTime: Date
  8. BigInt: number
  9. preResolveTypes: true # avoid using Pick
  10. generates:
  11. src/api/schema.json:
  12. plugins:
  13. - introspection
  14. src/api/__generated__/sdk.ts:
  15. hooks:
  16. afterOneFileWrite:
  17. - prettier --write
  18. - eslint --fix
  19. plugins:
  20. - typescript
  21. - typescript-operations
  22. - typescript-graphql-request