Translate /api/v0/markets, /api/v0/market/[id] and /api/v0/slug/[id] into their graphql equivalent
39 lines
900 B
YAML
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
|