codegen.json
{
"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
}
}
}
}