AFFiNE/packages/frontend/graphql/codegen.yml

34 lines
719 B
YAML
Raw Normal View History

hooks:
afterOneFileWrite:
- prettier --write
config:
strict: true
maybeValue: T | null
declarationKind: interface
avoidOptionals: true
preResolveTypes: true
onlyOperationTypes: true
namingConvention:
enumValues: keep
scalars:
DateTime: string
Date: string
Decimal: number
UUID: string
ID: string
2024-04-12 14:15:38 +03:00
JSON: Record<string, string>
2023-06-21 09:08:32 +03:00
Upload: File
SafeInt: number
overwrite: true
schema: ../../backend/server/src/schema.gql
documents: ./src/**/*.gql
generates:
./src/schema.ts:
plugins:
- typescript
- typescript-operations
- add:
content: '/* eslint-disable */'
- ./export-gql-plugin.cjs:
output: ./src/graphql/index.ts