Skip to content

Commit

Permalink
Exclude link in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Feb 14, 2023
1 parent dc92f43 commit db11a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transforms/federation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit db11a7d

Please sign in to comment.