diff --git a/packages/transforms/federation/src/index.ts b/packages/transforms/federation/src/index.ts index efbf84db8e87b..17988ac3311c1 100644 --- a/packages/transforms/federation/src/index.ts +++ b/packages/transforms/federation/src/index.ts @@ -196,7 +196,7 @@ export default class FederationTransform implements MeshTransform { schemaWithUnionType.extensions.directives || {}); directivesObj.link = { url: 'https://specs.apollo.dev/federation/' + (this.config.version || 'v2.0'), - import: federationDirectives.map(dirName => `@${dirName}`), + import: federationDirectives.filter(name => name !== 'link').map(dirName => `@${dirName}`), }; const existingDirectives = schemaWithUnionType.getDirectives();