felicity-lims/codegen.yml

34 lines
781 B
YAML
Raw Normal View History

2023-11-10 14:05:15 +08:00
overwrite: true
debug: true
2024-11-20 12:39:33 +08:00
schema:
2024-01-23 01:42:18 +08:00
- "http://127.0.0.1:8000/felicity-gql"
2024-11-20 12:39:33 +08:00
documents:
- "./webapp/graphql/operations/**/*.graphql"
2024-01-24 01:13:37 +08:00
ignoreNoDocuments: true
2024-01-23 01:42:18 +08:00
config:
scalars:
Long: number
defaultScalarType: never
useTypeImports: true
2023-11-10 14:05:15 +08:00
generates:
2024-11-20 12:39:33 +08:00
webapp/graphql/:
2024-01-24 01:13:37 +08:00
preset: client
config:
useTypeImports: true
webapp/graphql/schema.ts:
2024-01-23 01:42:18 +08:00
plugins:
- typescript
- typescript-urql-graphcache
2024-01-24 01:13:37 +08:00
webapp/graphql/operations:
2024-01-23 01:42:18 +08:00
preset: near-operation-file
presetConfig:
2024-11-20 12:39:33 +08:00
baseTypesPath: ../schema.ts
2024-01-23 01:42:18 +08:00
extension: .ts
config:
preResolveTypes: false
plugins:
- typescript-operations
- typescript-vue-urql
2024-01-24 01:13:37 +08:00
webapp/graphql/introspection.ts:
2023-11-10 14:05:15 +08:00
plugins:
2024-11-20 12:39:33 +08:00
- urql-introspection