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-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-23 01:42:18 +08:00
|
|
|
gql/schema.ts:
|
|
|
|
plugins:
|
|
|
|
- typescript
|
|
|
|
- typescript-urql-graphcache
|
|
|
|
gql/:
|
|
|
|
preset: near-operation-file
|
|
|
|
presetConfig:
|
|
|
|
baseTypesPath: schema.ts
|
|
|
|
extension: .ts
|
|
|
|
config:
|
|
|
|
preResolveTypes: false
|
|
|
|
plugins:
|
|
|
|
- typescript-operations
|
|
|
|
- typescript-vue-urql
|
|
|
|
gql/introspection.ts:
|
2023-11-10 14:05:15 +08:00
|
|
|
plugins:
|
2024-01-23 01:42:18 +08:00
|
|
|
- urql-introspection
|