manifold/web/codegen.yml
joy_void_joy efab3de172 graphql: Add mocked graphql endpoint
Add a graphql endpoint at /api/graphql
2022-07-20 18:15:53 +02:00

28 lines
472 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
scalars:
MarketID: 'string'
plugins:
- 'typescript'
- 'typescript-resolvers'
generated/schema.graphql:
plugins:
- 'schema-ast'
hooks:
afterAllFileWrite:
- prettier --write