Skip to content

Commit 5eb7eec

Browse files
committed
feat: upgrade to graphql-modules 3
1 parent 944d612 commit 5eb7eec

File tree

23 files changed

+74
-75
lines changed

23 files changed

+74
-75
lines changed

examples/accounts-microservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@graphql-tools/utils": "10.0.7",
2828
"@graphql-tools/wrap": "10.0.1",
2929
"graphql": "16.8.1",
30-
"graphql-modules": "2.2.0",
30+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
3131
"graphql-yoga": "4.0.5",
3232
"lodash": "4.17.21",
3333
"node-fetch": "2.7.0",

examples/graphql-server-mikro-orm-postgres/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@mikro-orm/postgresql": "5.8.8",
3838
"@mikro-orm/reflection": "5.8.8",
3939
"graphql": "16.8.1",
40-
"graphql-modules": "2.2.0",
40+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
4141
"graphql-yoga": "4.0.5",
4242
"tslib": "2.6.2"
4343
},

examples/graphql-server-typeorm-postgres/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@graphql-tools/merge": "9.0.0",
2424
"dotenv": "16.3.1",
2525
"graphql": "16.8.1",
26-
"graphql-modules": "2.2.0",
26+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
2727
"pg": "8.11.3",
2828
"tslib": "2.6.2",
2929
"typeorm": "0.3.17"

examples/graphql-server-typescript-apollo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@graphql-tools/merge": "9.0.0",
2222
"@graphql-tools/schema": "10.0.0",
2323
"graphql": "16.8.1",
24-
"graphql-modules": "2.2.0",
24+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
2525
"graphql-tag": "2.12.6",
2626
"mongoose": "7.6.1",
2727
"tslib": "2.6.2"

examples/graphql-server-typescript-apollo/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ void (async () => {
112112
],
113113
schemaBuilder: buildSchema({ typeDefs, resolvers }),
114114
});
115-
const { injector, createOperationController } = app;
116-
const schema = app.createSchemaForApollo();
115+
const { injector, createOperationController, createApolloGateway } = app;
116+
const gateway = createApolloGateway();
117117

118118
injector.get(AccountsServer).on(ServerHooks.ValidateLogin, ({ user }) => {
119119
// This hook is called every time a user try to login.
@@ -124,7 +124,7 @@ void (async () => {
124124

125125
// Create the Apollo Server that takes a schema and configures internal stuff
126126
const server = new ApolloServer({
127-
schema,
127+
gateway,
128128
plugins: [
129129
process.env.NODE_ENV === 'production'
130130
? ApolloServerPluginLandingPageDisabled()

examples/graphql-server-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@graphql-tools/merge": "9.0.0",
2222
"@graphql-tools/schema": "10.0.0",
2323
"graphql": "16.8.1",
24-
"graphql-modules": "2.2.0",
24+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
2525
"graphql-tag": "2.12.6",
2626
"graphql-yoga": "4.0.5",
2727
"mongoose": "7.6.1",

modules/module-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@accounts/types": "^0.32.0 || ^0.33.0",
3838
"@graphql-tools/schema": "^10.0.0",
3939
"graphql": "^16.0.0",
40-
"graphql-modules": "^2.0.0",
40+
"graphql-modules": "^3.0.0",
4141
"graphql-tag": "^2.10.0"
4242
},
4343
"dependencies": {
@@ -59,7 +59,7 @@
5959
"@graphql-tools/schema": "10.0.0",
6060
"@types/request-ip": "0.0.39",
6161
"graphql": "16.8.1",
62-
"graphql-modules": "2.2.0",
62+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
6363
"graphql-tag": "2.12.6"
6464
}
6565
}

modules/module-magic-link/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@accounts/server": "^0.32.0 || ^0.33.0",
3939
"@accounts/types": "^0.32.0 || ^0.33.0",
4040
"graphql": "^16.0.0",
41-
"graphql-modules": "^2.0.0",
41+
"graphql-modules": "^3.0.0",
4242
"graphql-tag": "^2.10.0"
4343
},
4444
"dependencies": {
@@ -61,7 +61,7 @@
6161
"@graphql-codegen/typescript-type-graphql": "3.0.0",
6262
"@types/request-ip": "0.0.39",
6363
"graphql": "16.8.1",
64-
"graphql-modules": "2.2.0",
64+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
6565
"graphql-tag": "2.12.6"
6666
}
6767
}

modules/module-mikro-orm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@accounts/types": "^0.32.0 || ^0.33.0",
4141
"@mikro-orm/core": "^5.0.0",
4242
"graphql": "^16.0.0",
43-
"graphql-modules": "^2.0.0",
43+
"graphql-modules": "^3.0.0",
4444
"graphql-tag": "^2.10.0"
4545
},
4646
"dependencies": {
@@ -72,7 +72,7 @@
7272
"@mikro-orm/reflection": "5.8.8",
7373
"@types/request-ip": "0.0.39",
7474
"graphql": "16.8.1",
75-
"graphql-modules": "2.2.0",
75+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
7676
"graphql-tag": "2.12.6",
7777
"reflect-metadata": "0.1.13"
7878
}

modules/module-mongo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@accounts/types": "^0.32.0 || ^0.33.0",
4141
"@mikro-orm/core": "^5.0.0",
4242
"graphql": "^16.0.0",
43-
"graphql-modules": "^2.0.0",
43+
"graphql-modules": "^3.0.0",
4444
"graphql-tag": "^2.10.0"
4545
},
4646
"dependencies": {
@@ -72,7 +72,7 @@
7272
"@mikro-orm/reflection": "5.8.8",
7373
"@types/request-ip": "0.0.39",
7474
"graphql": "16.8.1",
75-
"graphql-modules": "2.2.0",
75+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
7676
"graphql-tag": "2.12.6",
7777
"mongodb": "5.9.0",
7878
"reflect-metadata": "0.1.13"

modules/module-password/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@accounts/server": "^0.32.0 || ^0.33.0",
3939
"@accounts/types": "^0.32.0 || ^0.33.0",
4040
"graphql": "^16.0.0",
41-
"graphql-modules": "^2.0.0",
41+
"graphql-modules": "^3.0.0",
4242
"graphql-tag": "^2.10.0"
4343
},
4444
"dependencies": {
@@ -61,7 +61,7 @@
6161
"@graphql-codegen/typescript-type-graphql": "3.0.0",
6262
"@types/request-ip": "0.0.39",
6363
"graphql": "16.8.1",
64-
"graphql-modules": "2.2.0",
64+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
6565
"graphql-tag": "2.12.6"
6666
}
6767
}

modules/module-typeorm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@accounts/typeorm": "^0.33.1",
4040
"@accounts/types": "^0.32.0 || ^0.33.0",
4141
"graphql": "^16.0.0",
42-
"graphql-modules": "^2.0.0",
42+
"graphql-modules": "^3.0.0",
4343
"graphql-tag": "^2.10.0",
4444
"typeorm": "^0.3.0"
4545
},
@@ -65,7 +65,7 @@
6565
"@graphql-codegen/typescript-type-graphql": "3.0.0",
6666
"@types/request-ip": "0.0.39",
6767
"graphql": "16.8.1",
68-
"graphql-modules": "2.2.0",
68+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
6969
"graphql-tag": "2.12.6",
7070
"reflect-metadata": "0.1.13",
7171
"typeorm": "0.3.17"

packages/database-mikro-orm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@mikro-orm/postgresql": "5.8.8",
3737
"@mikro-orm/reflection": "5.8.8",
3838
"graphql": "16.8.1",
39-
"graphql-modules": "2.2.0"
39+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3"
4040
},
4141
"dependencies": {
4242
"@accounts/types": "^0.33.2",
@@ -50,6 +50,6 @@
5050
"@mikro-orm/migrations": "^5.0.0",
5151
"@mikro-orm/postgresql": "^5.0.0",
5252
"@mikro-orm/reflection": "^5.0.0",
53-
"graphql-modules": "^2.0.0"
53+
"graphql-modules": "^3.0.0"
5454
}
5555
}

packages/database-mongo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"devDependencies": {
4040
"@accounts/database-tests": "^0.32.2",
4141
"graphql": "16.8.1",
42-
"graphql-modules": "2.2.0"
42+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3"
4343
},
4444
"peerDependencies": {
45-
"graphql-modules": "^2.0.0"
45+
"graphql-modules": "^3.0.0"
4646
}
4747
}

packages/database-typeorm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@accounts/database-tests": "^0.32.2",
3333
"@types/lodash": "4.14.199",
3434
"graphql": "16.8.1",
35-
"graphql-modules": "2.2.0",
35+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
3636
"pg": "8.11.3",
3737
"typeorm": "0.3.17"
3838
},
@@ -44,7 +44,7 @@
4444
},
4545
"peerDependencies": {
4646
"graphql": "^16.0.0",
47-
"graphql-modules": "^2.0.0",
47+
"graphql-modules": "^3.0.0",
4848
"typeorm": "^0.3.0"
4949
}
5050
}

packages/e2e/__tests__/servers/server-graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class ServerGraphqlTest implements ServerTestInterface {
9090
});
9191

9292
this.apolloServer = new ApolloServer({
93-
schema: this.accountsApp.createSchemaForApollo(),
93+
gateway: this.accountsApp.createApolloGateway(),
9494
});
9595

9696
const apolloClient = new ApolloClient({

packages/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"core-js": "3.33.0",
5353
"express": "4.18.2",
5454
"graphql": "16.8.1",
55-
"graphql-modules": "2.2.0",
55+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
5656
"mongoose": "7.6.1",
5757
"node-fetch": "2.7.0",
5858
"tslib": "2.6.2",

packages/magic-link/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"@types/bcryptjs": "2.4.4",
3535
"@types/lodash.set": "4.3.7",
3636
"graphql": "16.8.1",
37-
"graphql-modules": "2.2.0",
37+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
3838
"lodash.set": "4.3.2",
3939
"reflect-metadata": "0.1.13"
4040
},
4141
"peerDependencies": {
4242
"@accounts/server": "^0.32.0 || ^0.33.0",
43-
"graphql-modules": "^2.0.0"
43+
"graphql-modules": "^3.0.0"
4444
}
4545
}

packages/oauth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"devDependencies": {
2929
"@accounts/server": "^0.33.1",
3030
"graphql": "16.8.1",
31-
"graphql-modules": "2.2.0",
31+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
3232
"reflect-metadata": "0.1.13"
3333
},
3434
"peerDependencies": {
3535
"@accounts/server": "^0.32.0 || ^0.33.0",
3636
"graphql": "^16.0.0",
37-
"graphql-modules": "^2.0.0"
37+
"graphql-modules": "^3.0.0"
3838
}
3939
}

packages/password/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"@types/bcryptjs": "2.4.4",
3333
"@types/lodash.set": "4.3.7",
3434
"graphql": "16.8.1",
35-
"graphql-modules": "2.2.0",
35+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
3636
"lodash.set": "4.3.2",
3737
"reflect-metadata": "0.1.13"
3838
},
3939
"peerDependencies": {
4040
"@accounts/server": "^0.32.0 || ^0.33.0",
4141
"graphql": "^16.0.0",
42-
"graphql-modules": "^2.0.0"
42+
"graphql-modules": "^3.0.0"
4343
}
4444
}

packages/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"license": "MIT",
4646
"peerDependencies": {
4747
"graphql": "^16.0.0",
48-
"graphql-modules": "^2.0.0"
48+
"graphql-modules": "^3.0.0"
4949
},
5050
"dependencies": {
5151
"@accounts/types": "^0.33.1",
@@ -59,7 +59,7 @@
5959
"devDependencies": {
6060
"@types/lodash.merge": "4.6.7",
6161
"graphql": "16.8.1",
62-
"graphql-modules": "2.2.0",
62+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3",
6363
"reflect-metadata": "0.1.13"
6464
}
6565
}

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
},
4949
"devDependencies": {
5050
"graphql": "16.8.1",
51-
"graphql-modules": "2.2.0"
51+
"graphql-modules": "3.0.0-alpha-20231010152921-a1eddea3"
5252
}
5353
}

0 commit comments

Comments
 (0)