-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
23 lines (23 loc) · 1.09 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
schema: ./src/api/schema.graphql
generates:
./src/api/__generated__/resolvers-types.ts:
config:
contextType: ../context#ResolverContext
mappers:
Book: ../repo/books#BookModel
CarouselComponent: ../repo/components#RootListComponentModel
GridComponent: ../repo/components#RootListComponentModel
ListComponent: ../repo/components#RootListComponentModel
BookActionComponent: ../repo/components#RootBookComponentModel
BookAuthorsComponent: ../repo/components#RootBookComponentModel
BookCategoriesComponent: ../repo/components#RootBookComponentModel
BookDetailsComponent: ../repo/components#RootBookComponentModel
BookImageComponent: ../repo/components#RootBookComponentModel
BookTitleComponent: ../repo/components#RootBookComponentModel
Component: ../repo/components#RootComponentModel
MarkdownComponent: ../repo/components#RootComponentModel
LayoutComponent: ../repo/components#RootLayoutComponentModel
List: ../repo/lists#ListModel
plugins:
- typescript
- typescript-resolvers