-
Notifications
You must be signed in to change notification settings - Fork 12
/
codegen.json
47 lines (47 loc) · 1.32 KB
/
codegen.json
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
{
"schema": ["./src/common/schema.graphql.ts", "./plugins/**/schema.graphql.ts"],
"documents": ["./src/client/**/*.graphql.ts", "./plugins/**/*.graphql.ts"],
"overwrite": true,
"watch": false,
"generates": {
"src/server/generated/graphql.ts": {
"plugins": ["typescript", "typescript-resolvers", "typescript-mongodb"],
"config": {
"mappers": {
"ApplicationField": "ApplicationFieldDbObject",
"_Plugin__Event": "_Plugin__EventDbObject",
"_Plugin__EventCheckIn": "_Plugin__EventCheckInDbObject",
"Event": "EventDbObject",
"EventCheckIn": "EventCheckInDbObject",
"Company": "CompanyDbObject",
"Hacker": "HackerDbObject",
"Login": "LoginDbObject",
"Mentor": "MentorDbObject",
"Organizer": "OrganizerDbObject",
"Shift": "ShiftDbObject",
"Sponsor": "SponsorDbObject",
"Team": "TeamDbObject",
"Tier": "TierDbObject",
"User": "UserDbInterface",
"Volunteer": "VolunteerDbObject"
},
"skipTypenames": false
}
},
"src/client/generated/graphql.ts": {
"plugins": [
"typescript",
"typescript-operations",
"typescript-mongodb",
"typescript-react-apollo"
],
"config": {
"withHOC": false,
"withComponent": false,
"withHooks": true,
"hooksImportFrom": "@apollo/react-hooks",
"withMutationFn": false
}
}
}
}