-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
30 lines (30 loc) · 898 Bytes
/
codegen.yml
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
29
30
overwrite: true
schema:
- src/schema.ts
config:
scalars:
Timestamp: Timestamp
generates:
graphql.schema.json:
plugins:
- "introspection"
src/generated/graphql.ts:
config:
useIndexSignature: true
avoidOptionals: false
contextType: ApolloContext
mappers:
User: ../store/schema#UserDoc
Trick: ../store/schema#TrickDoc
TrickLevel: ../store/schema#TrickLevelDoc
TrickCompletion: ../store/schema#TrickCompletionDoc
SpeedResult: ../store/schema#SpeedResultDoc
SimpleSpeedResult: ../store/schema#SimpleSpeedResultDoc
DetailedSpeedResult: ../store/schema#DetailedSpeedResultDoc
plugins:
- typescript
- typescript-resolvers
- add:
content: |
import type { ApolloContext } from '../apollo'
import type { Timestamp } from '@google-cloud/firestore'