We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1f85e commit 1c1898bCopy full SHA for 1c1898b
packages/graphql/lib/federation/graphql-federation.factory.ts
@@ -94,11 +94,9 @@ export class GraphQLFederationFactory {
94
'ApolloFederation',
95
() => require('@apollo/subgraph'),
96
);
97
- const apolloSubgraphVersion = loadPackage(
98
- '@apollo/subgraph',
99
- 'ApolloFederation',
100
- () => require('@apollo/subgraph/package.json'),
101
- );
+ const apolloSubgraphVersion = (
+ await import('@apollo/subgraph/package.json')
+ ).version;
102
103
const isaApolloSubgraph2 = Number(apolloSubgraphVersion.split('.')[0]) >= 2;
104
const printSubgraphSchema = apolloSubgraph.printSubgraphSchema;
0 commit comments