-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcodegen.yml
More file actions
28 lines (28 loc) · 954 Bytes
/
Copy pathcodegen.yml
File metadata and controls
28 lines (28 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
overwrite: true
schema: ${VITE_GRAPHQL_API_URL}
documents: "./src/graphql/**/*.graphql"
generates:
src/generated/graphql.tsx:
plugins:
# NOTE: the standalone `typescript` plugin is intentionally omitted.
# typescript-operations v6 self-declares the enum/input types its
# operations use, so including `typescript` produces duplicate
# declarations. The full schema SDL is emitted to schema.graphql below.
- "typescript-operations"
- "typescript-urql"
config:
skipTypename: false
withHooks: true
withHOC: false
withComponent: false
# liteend-go (gqlgen) exposes custom scalars. Map them to the TS types the UI
# actually uses so fields stay strongly typed instead of falling back to `any`.
scalars:
URL: string
DateTime: string
src/generated/schema.graphql:
plugins:
- schema-ast
config:
includeDirectives: true
sort: true