codegen.yml 595 B

12345678910111213141516171819202122232425262728
  1. overwrite: true
  2. schema: 'https://tiguan08.com/graphql'
  3. documents:
  4. - './src/queries/**/*.gql'
  5. config:
  6. scalars:
  7. Date: Date
  8. BigInt: string
  9. Float: string
  10. preResolveTypes: true # avoid using Pick
  11. nonOptionalTypename: true
  12. generates:
  13. src/queries/__generated__/baseTypes.generated.ts:
  14. plugins:
  15. - typescript
  16. src/queries/__generated__/:
  17. preset: near-operation-file
  18. presetConfig:
  19. baseTypesPath: baseTypes.generated.ts
  20. folder: __generated__
  21. extension: .generated.tsx
  22. plugins:
  23. - typescript-operations
  24. - typescript-react-apollo