File tree Expand file tree Collapse file tree 23 files changed +74
-75
lines changed
graphql-server-mikro-orm-postgres
graphql-server-typeorm-postgres
graphql-server-typescript
graphql-server-typescript-apollo Expand file tree Collapse file tree 23 files changed +74
-75
lines changed Original file line number Diff line number Diff line change 27
27
"@graphql-tools/utils" : " 10.0.7" ,
28
28
"@graphql-tools/wrap" : " 10.0.1" ,
29
29
"graphql" : " 16.8.1" ,
30
- "graphql-modules" : " 2.2.0 " ,
30
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
31
31
"graphql-yoga" : " 4.0.5" ,
32
32
"lodash" : " 4.17.21" ,
33
33
"node-fetch" : " 2.7.0" ,
Original file line number Diff line number Diff line change 37
37
"@mikro-orm/postgresql" : " 5.8.8" ,
38
38
"@mikro-orm/reflection" : " 5.8.8" ,
39
39
"graphql" : " 16.8.1" ,
40
- "graphql-modules" : " 2.2.0 " ,
40
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
41
41
"graphql-yoga" : " 4.0.5" ,
42
42
"tslib" : " 2.6.2"
43
43
},
Original file line number Diff line number Diff line change 23
23
"@graphql-tools/merge" : " 9.0.0" ,
24
24
"dotenv" : " 16.3.1" ,
25
25
"graphql" : " 16.8.1" ,
26
- "graphql-modules" : " 2.2.0 " ,
26
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
27
27
"pg" : " 8.11.3" ,
28
28
"tslib" : " 2.6.2" ,
29
29
"typeorm" : " 0.3.17"
Original file line number Diff line number Diff line change 21
21
"@graphql-tools/merge" : " 9.0.0" ,
22
22
"@graphql-tools/schema" : " 10.0.0" ,
23
23
"graphql" : " 16.8.1" ,
24
- "graphql-modules" : " 2.2.0 " ,
24
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
25
25
"graphql-tag" : " 2.12.6" ,
26
26
"mongoose" : " 7.6.1" ,
27
27
"tslib" : " 2.6.2"
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ void (async () => {
112
112
] ,
113
113
schemaBuilder : buildSchema ( { typeDefs, resolvers } ) ,
114
114
} ) ;
115
- const { injector, createOperationController } = app ;
116
- const schema = app . createSchemaForApollo ( ) ;
115
+ const { injector, createOperationController, createApolloGateway } = app ;
116
+ const gateway = createApolloGateway ( ) ;
117
117
118
118
injector . get ( AccountsServer ) . on ( ServerHooks . ValidateLogin , ( { user } ) => {
119
119
// This hook is called every time a user try to login.
@@ -124,7 +124,7 @@ void (async () => {
124
124
125
125
// Create the Apollo Server that takes a schema and configures internal stuff
126
126
const server = new ApolloServer ( {
127
- schema ,
127
+ gateway ,
128
128
plugins : [
129
129
process . env . NODE_ENV === 'production'
130
130
? ApolloServerPluginLandingPageDisabled ( )
Original file line number Diff line number Diff line change 21
21
"@graphql-tools/merge" : " 9.0.0" ,
22
22
"@graphql-tools/schema" : " 10.0.0" ,
23
23
"graphql" : " 16.8.1" ,
24
- "graphql-modules" : " 2.2.0 " ,
24
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
25
25
"graphql-tag" : " 2.12.6" ,
26
26
"graphql-yoga" : " 4.0.5" ,
27
27
"mongoose" : " 7.6.1" ,
Original file line number Diff line number Diff line change 37
37
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
38
38
"@graphql-tools/schema" : " ^10.0.0" ,
39
39
"graphql" : " ^16.0.0" ,
40
- "graphql-modules" : " ^2 .0.0" ,
40
+ "graphql-modules" : " ^3 .0.0" ,
41
41
"graphql-tag" : " ^2.10.0"
42
42
},
43
43
"dependencies" : {
59
59
"@graphql-tools/schema" : " 10.0.0" ,
60
60
"@types/request-ip" : " 0.0.39" ,
61
61
"graphql" : " 16.8.1" ,
62
- "graphql-modules" : " 2.2.0 " ,
62
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
63
63
"graphql-tag" : " 2.12.6"
64
64
}
65
65
}
Original file line number Diff line number Diff line change 38
38
"@accounts/server" : " ^0.32.0 || ^0.33.0" ,
39
39
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
40
40
"graphql" : " ^16.0.0" ,
41
- "graphql-modules" : " ^2 .0.0" ,
41
+ "graphql-modules" : " ^3 .0.0" ,
42
42
"graphql-tag" : " ^2.10.0"
43
43
},
44
44
"dependencies" : {
61
61
"@graphql-codegen/typescript-type-graphql" : " 3.0.0" ,
62
62
"@types/request-ip" : " 0.0.39" ,
63
63
"graphql" : " 16.8.1" ,
64
- "graphql-modules" : " 2.2.0 " ,
64
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
65
65
"graphql-tag" : " 2.12.6"
66
66
}
67
67
}
Original file line number Diff line number Diff line change 40
40
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
41
41
"@mikro-orm/core" : " ^5.0.0" ,
42
42
"graphql" : " ^16.0.0" ,
43
- "graphql-modules" : " ^2 .0.0" ,
43
+ "graphql-modules" : " ^3 .0.0" ,
44
44
"graphql-tag" : " ^2.10.0"
45
45
},
46
46
"dependencies" : {
72
72
"@mikro-orm/reflection" : " 5.8.8" ,
73
73
"@types/request-ip" : " 0.0.39" ,
74
74
"graphql" : " 16.8.1" ,
75
- "graphql-modules" : " 2.2.0 " ,
75
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
76
76
"graphql-tag" : " 2.12.6" ,
77
77
"reflect-metadata" : " 0.1.13"
78
78
}
Original file line number Diff line number Diff line change 40
40
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
41
41
"@mikro-orm/core" : " ^5.0.0" ,
42
42
"graphql" : " ^16.0.0" ,
43
- "graphql-modules" : " ^2 .0.0" ,
43
+ "graphql-modules" : " ^3 .0.0" ,
44
44
"graphql-tag" : " ^2.10.0"
45
45
},
46
46
"dependencies" : {
72
72
"@mikro-orm/reflection" : " 5.8.8" ,
73
73
"@types/request-ip" : " 0.0.39" ,
74
74
"graphql" : " 16.8.1" ,
75
- "graphql-modules" : " 2.2.0 " ,
75
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
76
76
"graphql-tag" : " 2.12.6" ,
77
77
"mongodb" : " 5.9.0" ,
78
78
"reflect-metadata" : " 0.1.13"
Original file line number Diff line number Diff line change 38
38
"@accounts/server" : " ^0.32.0 || ^0.33.0" ,
39
39
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
40
40
"graphql" : " ^16.0.0" ,
41
- "graphql-modules" : " ^2 .0.0" ,
41
+ "graphql-modules" : " ^3 .0.0" ,
42
42
"graphql-tag" : " ^2.10.0"
43
43
},
44
44
"dependencies" : {
61
61
"@graphql-codegen/typescript-type-graphql" : " 3.0.0" ,
62
62
"@types/request-ip" : " 0.0.39" ,
63
63
"graphql" : " 16.8.1" ,
64
- "graphql-modules" : " 2.2.0 " ,
64
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
65
65
"graphql-tag" : " 2.12.6"
66
66
}
67
67
}
Original file line number Diff line number Diff line change 39
39
"@accounts/typeorm" : " ^0.33.1" ,
40
40
"@accounts/types" : " ^0.32.0 || ^0.33.0" ,
41
41
"graphql" : " ^16.0.0" ,
42
- "graphql-modules" : " ^2 .0.0" ,
42
+ "graphql-modules" : " ^3 .0.0" ,
43
43
"graphql-tag" : " ^2.10.0" ,
44
44
"typeorm" : " ^0.3.0"
45
45
},
65
65
"@graphql-codegen/typescript-type-graphql" : " 3.0.0" ,
66
66
"@types/request-ip" : " 0.0.39" ,
67
67
"graphql" : " 16.8.1" ,
68
- "graphql-modules" : " 2.2.0 " ,
68
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
69
69
"graphql-tag" : " 2.12.6" ,
70
70
"reflect-metadata" : " 0.1.13" ,
71
71
"typeorm" : " 0.3.17"
Original file line number Diff line number Diff line change 36
36
"@mikro-orm/postgresql" : " 5.8.8" ,
37
37
"@mikro-orm/reflection" : " 5.8.8" ,
38
38
"graphql" : " 16.8.1" ,
39
- "graphql-modules" : " 2.2.0 "
39
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 "
40
40
},
41
41
"dependencies" : {
42
42
"@accounts/types" : " ^0.33.2" ,
50
50
"@mikro-orm/migrations" : " ^5.0.0" ,
51
51
"@mikro-orm/postgresql" : " ^5.0.0" ,
52
52
"@mikro-orm/reflection" : " ^5.0.0" ,
53
- "graphql-modules" : " ^2 .0.0"
53
+ "graphql-modules" : " ^3 .0.0"
54
54
}
55
55
}
Original file line number Diff line number Diff line change 39
39
"devDependencies" : {
40
40
"@accounts/database-tests" : " ^0.32.2" ,
41
41
"graphql" : " 16.8.1" ,
42
- "graphql-modules" : " 2.2.0 "
42
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 "
43
43
},
44
44
"peerDependencies" : {
45
- "graphql-modules" : " ^2 .0.0"
45
+ "graphql-modules" : " ^3 .0.0"
46
46
}
47
47
}
Original file line number Diff line number Diff line change 32
32
"@accounts/database-tests" : " ^0.32.2" ,
33
33
"@types/lodash" : " 4.14.199" ,
34
34
"graphql" : " 16.8.1" ,
35
- "graphql-modules" : " 2.2.0 " ,
35
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
36
36
"pg" : " 8.11.3" ,
37
37
"typeorm" : " 0.3.17"
38
38
},
44
44
},
45
45
"peerDependencies" : {
46
46
"graphql" : " ^16.0.0" ,
47
- "graphql-modules" : " ^2 .0.0" ,
47
+ "graphql-modules" : " ^3 .0.0" ,
48
48
"typeorm" : " ^0.3.0"
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export class ServerGraphqlTest implements ServerTestInterface {
90
90
} ) ;
91
91
92
92
this . apolloServer = new ApolloServer ( {
93
- schema : this . accountsApp . createSchemaForApollo ( ) ,
93
+ gateway : this . accountsApp . createApolloGateway ( ) ,
94
94
} ) ;
95
95
96
96
const apolloClient = new ApolloClient ( {
Original file line number Diff line number Diff line change 52
52
"core-js" : " 3.33.0" ,
53
53
"express" : " 4.18.2" ,
54
54
"graphql" : " 16.8.1" ,
55
- "graphql-modules" : " 2.2.0 " ,
55
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
56
56
"mongoose" : " 7.6.1" ,
57
57
"node-fetch" : " 2.7.0" ,
58
58
"tslib" : " 2.6.2" ,
Original file line number Diff line number Diff line change 34
34
"@types/bcryptjs" : " 2.4.4" ,
35
35
"@types/lodash.set" : " 4.3.7" ,
36
36
"graphql" : " 16.8.1" ,
37
- "graphql-modules" : " 2.2.0 " ,
37
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
38
38
"lodash.set" : " 4.3.2" ,
39
39
"reflect-metadata" : " 0.1.13"
40
40
},
41
41
"peerDependencies" : {
42
42
"@accounts/server" : " ^0.32.0 || ^0.33.0" ,
43
- "graphql-modules" : " ^2 .0.0"
43
+ "graphql-modules" : " ^3 .0.0"
44
44
}
45
45
}
Original file line number Diff line number Diff line change 28
28
"devDependencies" : {
29
29
"@accounts/server" : " ^0.33.1" ,
30
30
"graphql" : " 16.8.1" ,
31
- "graphql-modules" : " 2.2.0 " ,
31
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
32
32
"reflect-metadata" : " 0.1.13"
33
33
},
34
34
"peerDependencies" : {
35
35
"@accounts/server" : " ^0.32.0 || ^0.33.0" ,
36
36
"graphql" : " ^16.0.0" ,
37
- "graphql-modules" : " ^2 .0.0"
37
+ "graphql-modules" : " ^3 .0.0"
38
38
}
39
39
}
Original file line number Diff line number Diff line change 32
32
"@types/bcryptjs" : " 2.4.4" ,
33
33
"@types/lodash.set" : " 4.3.7" ,
34
34
"graphql" : " 16.8.1" ,
35
- "graphql-modules" : " 2.2.0 " ,
35
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
36
36
"lodash.set" : " 4.3.2" ,
37
37
"reflect-metadata" : " 0.1.13"
38
38
},
39
39
"peerDependencies" : {
40
40
"@accounts/server" : " ^0.32.0 || ^0.33.0" ,
41
41
"graphql" : " ^16.0.0" ,
42
- "graphql-modules" : " ^2 .0.0"
42
+ "graphql-modules" : " ^3 .0.0"
43
43
}
44
44
}
Original file line number Diff line number Diff line change 45
45
"license" : " MIT" ,
46
46
"peerDependencies" : {
47
47
"graphql" : " ^16.0.0" ,
48
- "graphql-modules" : " ^2 .0.0"
48
+ "graphql-modules" : " ^3 .0.0"
49
49
},
50
50
"dependencies" : {
51
51
"@accounts/types" : " ^0.33.1" ,
59
59
"devDependencies" : {
60
60
"@types/lodash.merge" : " 4.6.7" ,
61
61
"graphql" : " 16.8.1" ,
62
- "graphql-modules" : " 2.2.0 " ,
62
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 " ,
63
63
"reflect-metadata" : " 0.1.13"
64
64
}
65
65
}
Original file line number Diff line number Diff line change 48
48
},
49
49
"devDependencies" : {
50
50
"graphql" : " 16.8.1" ,
51
- "graphql-modules" : " 2.2.0 "
51
+ "graphql-modules" : " 3.0.0-alpha-20231010152921-a1eddea3 "
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments