manifold/web/codegen.yml
joy_void_joy 85746f0461 graphql: Add slug, market and markets queries
Translate /api/v0/markets, /api/v0/market/[id] and /api/v0/slug/[id]
into their graphql equivalent
2022-07-20 18:15:56 +02:00

39 lines
900 B
YAML

overwrite: true
schema: lib/api/graphql/**/**.graphql
documents: null
generates:
generated/graphql_api.ts:
config:
useIndexSignature: true
contextType: web/lib/api/graphql/types#contextType
inputMaybeValue: undefined | T
maybeValue: undefined | T
strictScalars: true
mappers:
Comment: web/lib/api/graphql/types#CommentModel
MarketAnswer: web/lib/api/graphql/types#AnswerModel
Market: web/lib/api/graphql/types#MarketModel
Bet: web/lib/api/graphql/types#BetModel
scalars:
MarketID: 'string'
MarketAnswerID: 'string'
BetID: 'string'
CommentID: 'string'
UserID: 'string'
Timestamp: 'number'
plugins:
- 'typescript'
- 'typescript-resolvers'
generated/schema.graphql:
plugins:
- 'schema-ast'
hooks:
afterAllFileWrite:
- prettier --write