2023-04-25 05:13:52 +03:00
|
|
|
hooks:
|
|
|
|
afterOneFileWrite:
|
|
|
|
- prettier --write
|
|
|
|
config:
|
|
|
|
strict: true
|
|
|
|
maybeValue: T | null
|
|
|
|
declarationKind: interface
|
2024-12-05 11:31:01 +03:00
|
|
|
avoidOptionals:
|
|
|
|
field: true
|
|
|
|
inputValue: false
|
|
|
|
object: false
|
|
|
|
defaultValue: false
|
2023-04-25 05:13:52 +03:00
|
|
|
preResolveTypes: 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
|
2024-01-17 15:36:21 +03:00
|
|
|
SafeInt: number
|
2023-04-25 05:13:52 +03:00
|
|
|
overwrite: true
|
2023-10-18 18:30:08 +03:00
|
|
|
schema: ../../backend/server/src/schema.gql
|
2023-04-25 05:13:52 +03:00
|
|
|
documents: ./src/**/*.gql
|
|
|
|
generates:
|
|
|
|
./src/schema.ts:
|
|
|
|
plugins:
|
|
|
|
- typescript
|
|
|
|
- typescript-operations
|
|
|
|
- add:
|
|
|
|
content: '/* eslint-disable */'
|
|
|
|
- ./export-gql-plugin.cjs:
|
|
|
|
output: ./src/graphql/index.ts
|