-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
48 lines (47 loc) · 1.74 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
overwrite: true
schema:
- src/schema.ts
config:
scalars:
Timestamp: Timestamp
JSON: "{ [prop: string]: any }"
CompetitionEventLookupCode: CompetitionEventLookupCode
generates:
graphql.schema.json:
plugins:
- "introspection"
src/generated/graphql.ts:
config:
useIndexSignature: true
avoidOptionals: false
contextType: ApolloContext
mappers:
Group: ../store/schema#GroupDoc
User: ../store/schema#UserDoc
Device: ../store/schema#DeviceDoc
DeviceStreamShare: ../store/schema#DeviceStreamShareDoc
Judge: ../store/schema#JudgeDoc
Category: ../store/schema#CategoryDoc
JudgeAssignment: ../store/schema#JudgeAssignmentDoc
Athlete: ../store/schema#AthleteDoc
Team: ../store/schema#TeamDoc
Entry: ../store/schema#EntryDoc
Scoresheet: ../store/schema#ScoresheetDoc
MarkScoresheet: ../store/schema#MarkScoresheetDoc
TallyScoresheet: ../store/schema#TallyScoresheetDoc
RankedResult: ../store/schema#RankedResultDoc
StreamMarkEvent: ../store/schema#StreamMarkEventObj
DeviceStreamMarkEvent: ../store/schema#DeviceStreamMarkEventObj
enumValues:
CategoryType: ../store/schema#CategoryType
DeviceStreamShareStatus: ../store/schema#DeviceStreamShareStatus
ResultVersionType: ../store/schema#ResultVersionType
ResultVisibilityLevel: ../store/schema#ResultVisibilityLevel
plugins:
- typescript
- typescript-resolvers
- add:
content: |
import type { ApolloContext } from '../apollo'
import type { Timestamp } from '@google-cloud/firestore'
import type { CompetitionEventLookupCode } from '../store/schema'