type-graphql#buildSchemaSync TypeScript Examples
The following examples show how to use
type-graphql#buildSchemaSync.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.ts From graphql-ts-client with MIT License | 5 votes |
schema = buildSchemaSync({ resolvers: [ NodeService, DepartmentService, EmployeeService ] })
Example #2
Source File: express.ts From bouncecode-cms with GNU General Public License v3.0 | 5 votes |
schema = applyMiddleware(
buildSchemaSync({
resolvers,
emitSchemaFile: path.resolve(__dirname, 'generated/schema.gql'),
}),
permissions,
)
Example #3
Source File: index.ts From backend with MIT License | 5 votes |
schema = buildSchemaSync({
resolvers: [
/* User Authentication & Information */
AuthenticationResolver,
FieldMeResolver,
MutateMeResolver,
/* Course */
FindManyCourseResolver,
ExtendedFieldsCourseResolver,
FindManySubcourseResolver,
ExtendedFieldsSubcourseResolver,
FindManyLectureResolver,
MutateCourseResolver,
MutateSubcourseResolver,
/* Pupil */
FindManyPupilResolver,
ExtendFieldsPupilResolver,
MutatePupilResolver,
/* Student */
FindManyStudentResolver,
ExtendFieldsStudentResolver,
MutateStudentResolver,
/* Match */
FindManyMatchResolver,
ExtendedFieldsMatchResolver,
MutateMatchResolver,
/* Projects */
FindManyProject_matchResolver,
ExtendedFieldsProjectMatchResolver,
/* Notifications */
FindManyNotificationResolver,
MutateNotificationResolver,
NotificationBulkRunResolver,
FindManyConcrete_notificationResolver,
ExtendedFieldsConcreteNotificationResolver,
MutateConcreteNotificationsResolver,
/* TutoringInterestConfirmation */
MutateTutoringInterestConfirmationResolver,
/* ParticipationCertificate */
ExtendedFieldsParticipationCertificateResolver,
MutateParticipationCertificateResolver,
/* Schools */
FindManySchoolResolver,
ExtendedFieldsSchoolResolver,
/* Certificate of Conduct */
MutateCertificateOfConductResolver,
ExtendedFieldsCertificateOfConductResolver,
/* MatchPool */
FieldsMatchPoolResolver,
MutateMatchPoolResolver,
/* Secret */
MutateSecretResolver
],
authChecker
})