2025-11-04 11:39:59 +01:00
|
|
|
schema: http://localhost:6080/query
|
2022-08-03 18:40:05 +02:00
|
|
|
documents: './graphql/**/*.graphql'
|
2020-04-06 10:19:18 +02:00
|
|
|
generates:
|
2026-11-12 10:42:25 +01:00
|
|
|
# Schema types (objects, inputs, enums) — the single owner of these
|
|
|
|
|
# declarations. operations.ts imports them via `importSchemaTypesFrom`
|
|
|
|
|
# instead of re-declaring them; typescript-operations v7 emits every schema
|
|
|
|
|
# type used in a document, so keeping both plugins in one output produces
|
|
|
|
|
# duplicate identifiers.
|
|
|
|
|
./graphql/generated/schema.ts:
|
2020-04-06 10:19:18 +02:00
|
|
|
plugins:
|
2022-08-03 18:40:05 +02:00
|
|
|
- typescript
|
2026-11-12 10:42:25 +01:00
|
|
|
config: &config
|
2023-07-06 19:44:56 +02:00
|
|
|
gqlImport: '@/utils/gql#gql'
|
2022-08-03 18:40:05 +02:00
|
|
|
fetcher: fetch
|
|
|
|
|
avoidOptionals:
|
|
|
|
|
field: true
|
|
|
|
|
inputValue: true
|
|
|
|
|
object: false
|
|
|
|
|
defaultValue: true
|
|
|
|
|
maybeValue: T | null | undefined
|
|
|
|
|
strictScalars: true
|
|
|
|
|
scalars:
|
|
|
|
|
LocalDate: string
|
|
|
|
|
LocalDateTime: string
|
|
|
|
|
vueCompositionApiImportFrom: vue
|
2026-11-12 10:42:25 +01:00
|
|
|
./graphql/generated/operations.ts:
|
|
|
|
|
plugins:
|
|
|
|
|
- typescript-operations
|
|
|
|
|
- typescript-vue-apollo
|
|
|
|
|
- fragment-matcher
|
|
|
|
|
config:
|
|
|
|
|
<<: *config
|
|
|
|
|
importSchemaTypesFrom: './graphql/generated/schema'
|