Skip to content

Commit 421f27a

Browse files
committed
chore: cors
1 parent ec89031 commit 421f27a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
"chai-as-promised": "^7.1.1",
140140
"cls-hooked": "^4.2.2",
141141
"commitizen": "^4.2.4",
142+
"cors": "^2.8.5",
142143
"cz-conventional-changelog": "^3.3.0",
143144
"depcheck": "^1.4.3",
144145
"dev-null": "^0.1.1",

Diff for: packages/collector/test/tracing/protocols/apollo_subgraph/gateway.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ app.get('/', (req, res) => {
5555
});
5656

5757
(async () => {
58-
// Removed the manual gateway.load() call and schema/executor extraction - Apollo Server v4 handles this internally
59-
const server = new ApolloServer({
60-
gateway
61-
});
58+
const { schema, executor } = await gateway.load();
59+
const server = new ApolloServer({ schema, executor });
6260

6361
await server.start();
6462

0 commit comments

Comments
 (0)