.graphql_code_generator.yml 762 B

1234567891011121314151617181920212223242526272829
  1. overwrite: true
  2. schema: app/graphql/graphql_introspection.json
  3. config:
  4. vueCompositionApiImportFrom: vue
  5. addDocBlocks: false
  6. documents:
  7. ['app/frontend/shared/**/*.graphql', 'app/frontend/apps/**/*.graphql']
  8. generates:
  9. ./app/frontend/shared/graphql/types.ts:
  10. config:
  11. scalars:
  12. BinaryString: string
  13. NonEmptyString: string
  14. FormId: string
  15. ISO8601Date: string
  16. ISO8601DateTime: string
  17. plugins:
  18. - typescript
  19. - typescript-operations
  20. ./app/frontend/:
  21. preset: near-operation-file
  22. presetConfig:
  23. baseTypesPath: 'shared/graphql/types.ts'
  24. importTypesNamespace: ''
  25. extension: .api.ts
  26. plugins:
  27. - typescript-vue-apollo
  28. config:
  29. importOperationTypesFrom: Types