Skip to content

Commit a4d54e8

Browse files
chore(): improve the error message when using subgraph v1
1 parent 63a75bc commit a4d54e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql/lib/federation/type-defs-decorator.factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class TypeDefsDecoratorFactory {
1818
case 2: {
1919
if (apolloSubgraphVersion === 1) {
2020
this.logger.error(
21-
'You are trying to use Apollo Federation 2 but you are not using @apollo/subgraph@^2.0.0, please upgrade',
21+
'To use Apollo Federation v2, you have to install the @apollo/subgraph@^2.0.0.',
2222
);
2323
return;
2424
}

0 commit comments

Comments
 (0)