@@ -15,9 +15,6 @@ import simpleEntityResolvers from "./resolvers/simpleEntityResolvers";
1515import simpleEntityType from "./types/simpleEntityType" ;
1616import userResolvers from "./resolvers/userResolvers" ;
1717import userType from "./types/userType" ;
18- import dashboardType from "./types/dashboardType" ;
19- import dashboardResolvers from "./resolvers/dashboardResolvers" ;
20- import reviewType from "./types/reviewType" ;
2118
2219const query = gql `
2320 type Query {
@@ -32,22 +29,12 @@ const mutation = gql`
3229` ;
3330
3431const executableSchema = makeExecutableSchema ( {
35- typeDefs : [
36- query ,
37- mutation ,
38- authType ,
39- reviewType ,
40- entityType ,
41- simpleEntityType ,
42- userType ,
43- dashboardType ,
44- ] ,
32+ typeDefs : [ query , mutation , authType , entityType , simpleEntityType , userType ] ,
4533 resolvers : merge (
4634 authResolvers ,
4735 entityResolvers ,
4836 simpleEntityResolvers ,
4937 userResolvers ,
50- dashboardResolvers ,
5138 ) ,
5239} ) ;
5340
@@ -61,12 +48,6 @@ const graphQLMiddlewares = {
6148 entities : authorizedByAllRoles ( ) ,
6249 simpleEntity : authorizedByAllRoles ( ) ,
6350 simpleEntities : authorizedByAllRoles ( ) ,
64- dashboardById : authorizedByAllRoles ( ) ,
65- applicationsByRole : authorizedByAllRoles ( ) ,
66- applicationsBySecondChoiceRole : authorizedByAllRoles ( ) ,
67- applicationsById : authorizedByAllRoles ( ) ,
68- applicationTable : authorizedByAllRoles ( ) ,
69- secondChoiceRoleApplicationTable : authorizedByAllRoles ( ) ,
7051 userById : authorizedByAdmin ( ) ,
7152 userByEmail : authorizedByAdmin ( ) ,
7253 login : authorizedByAdmin ( ) ,
@@ -79,10 +60,6 @@ const graphQLMiddlewares = {
7960 createSimpleEntity : authorizedByAllRoles ( ) ,
8061 updateSimpleEntity : authorizedByAllRoles ( ) ,
8162 deleteSimpleEntity : authorizedByAllRoles ( ) ,
82- changeRating : authorizedByAllRoles ( ) ,
83- changeSkillCategory : authorizedByAllRoles ( ) ,
84- updateApplications : authorizedByAllRoles ( ) ,
85- modifyFinalComments : authorizedByAllRoles ( ) ,
8663 createUser : authorizedByAdmin ( ) ,
8764 updateUser : authorizedByAdmin ( ) ,
8865 deleteUserById : authorizedByAdmin ( ) ,
0 commit comments