felicity-lims/codegen.yml

37 lines
863 B
YAML
Raw Normal View History

2023-11-10 14:05:15 +08:00
overwrite: true
debug: true
2024-01-23 01:42:18 +08:00
schema:
- "http://127.0.0.1:8000/felicity-gql"
- './felicity/api/gql/schema.graphql'
2023-11-10 14:05:15 +08:00
documents:
2023-11-24 06:22:22 +08:00
- './felicity/api/gql/schema.graphql'
2023-11-10 14:05:15 +08:00
- './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-01-24 01:13:37 +08:00
webapp/graphql:
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:
baseTypesPath: schema.ts
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-01-23 01:42:18 +08:00
- urql-introspection