-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
24 lines (24 loc) · 1.01 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
overwrite: true
schema: "src/modules/graphql/schema.graphql"
generates:
src/generated/graphql.ts:
config:
useIndexSignature: true
defaultMapper: DeepPartial<{T}>
makeResolverTypeCallable: true
contextType: ../modules/graphql/types#TochesContext
mappers:
User: ../modules/graphql/types#UserWithKeys
UserRole: ../modules/graphql/types#UserRoleWithKeys
LiveVideo: ../modules/graphql/types#LiveVideoWithKeys
Video: ../modules/graphql/types#VideoWithKeys
VideoPagination: ../modules/graphql/types#VideoPaginationWithKeys
VideoSearchResults: ../modules/graphql/types#VideoSearchResultsWithKeys
ScheduleItem: ../modules/graphql/types#ScheduleItemWithKeys
SchedulePagination: ../modules/graphql/types#SchedulePaginationWithKeys
Organization: ../modules/graphql/types#OrganizationWithKeys
plugins:
- "typescript"
- "typescript-resolvers"
- add:
content: "import { DeepPartial } from 'utility-types';"