@@ -55,7 +55,10 @@ import { attendanceResolver } from "./resolvers/attendanceResolver";
5555import { attendanceSchema } from "./schema/attendanceSchema" ;
5656import { performanceResolver } from "./resolvers/performanceResolver" ;
5757import { performanceSchema } from "./schema/performanceSchema" ;
58- import { applicationStageDefs } from "./schema/applicationStage" ;
58+ import {
59+ applicationStageDefs ,
60+ technicalInterviewDefs ,
61+ } from "./schema/applicationStage" ;
5962import { applicationStageResolvers } from "./resolvers/applicationStageResolver" ;
6063import filterJobResolver from "./resolvers/filterJob" ;
6164import filterProgramResolver from "./resolvers/filterPrograms" ;
@@ -88,10 +91,12 @@ import { jobApplicationTypeDefs } from "./schema/jobApplicationSchema";
8891import { jobApplicationResolver } from "./resolvers/jobApplicationResolver" ;
8992import { blogRelatedResolvers } from "./resolvers/blogRelatedArticlesResolver" ;
9093import { blogRelatedArticlesSchema } from "./schema/blogRelatedArticlesSchema" ;
91- import { reactionSchema } from "./schema/reactionSchema" ;
94+ import { reactionSchema } from "./schema/reactionSchema" ;
9295import { reactionResolvers } from "./resolvers/reactionResolvers" ;
9396import { DocSchema } from "./schema/doc" ;
9497import { docResolver } from "./resolvers/Doc" ;
98+ import { technicalInterviewResolvers } from "./resolvers/scheduleInterviewResolver" ;
99+
95100const PORT = process . env . PORT || 3000 ;
96101
97102const resolvers = mergeResolvers ( [
@@ -140,7 +145,8 @@ const resolvers = mergeResolvers([
140145 commentReplyResolvers ,
141146 blogRelatedResolvers ,
142147 docResolver ,
143- reactionResolvers
148+ reactionResolvers ,
149+ technicalInterviewResolvers ,
144150] ) ;
145151const typeDefs = mergeTypeDefs ( [
146152 applicationCycleTypeDefs ,
@@ -184,7 +190,9 @@ const typeDefs = mergeTypeDefs([
184190 jobApplicationTypeDefs ,
185191 blogRelatedArticlesSchema ,
186192 DocSchema ,
187- reactionSchema
193+ reactionSchema ,
194+ applicationStageDefs ,
195+ technicalInterviewDefs ,
188196] ) ;
189197
190198const server = new ApolloServer ( {
@@ -197,7 +205,7 @@ const server = new ApolloServer({
197205 try {
198206 authToken =
199207 req . headers . authorization &&
200- req . headers . authorization . startsWith ( "Bearer " )
208+ req . headers . authorization . startsWith ( "Bearer " )
201209 ? req . headers . authorization . split ( " " ) [ 1 ]
202210 : req . headers . authorization ;
203211 if ( authToken ) {
@@ -216,4 +224,4 @@ const server = new ApolloServer({
216224connect ( ) . then ( ( ) => {
217225 console . log ( "Database connected!" ) ;
218226 server . listen ( PORT ) . then ( ( { url } ) => console . info ( `App on ${ url } ` ) ) ;
219- } ) ;
227+ } ) ;
0 commit comments