Have graphql-codegen run with yarn dev:dev, and have it read graphql files and output them in the generated folder
26 lines
430 B
YAML
26 lines
430 B
YAML
overwrite: true
|
|
schema: lib/api/graphql/**/**.graphql
|
|
documents: null
|
|
|
|
generates:
|
|
generated/graphql_api.ts:
|
|
config:
|
|
useIndexSignature: true
|
|
|
|
inputMaybeValue: undefined | T
|
|
maybeValue: undefined | T
|
|
|
|
strictScalars: true
|
|
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-resolvers'
|
|
|
|
generated/schema.graphql:
|
|
plugins:
|
|
- 'schema-ast'
|
|
|
|
hooks:
|
|
afterAllFileWrite:
|
|
- prettier --write
|