Skip to content

Commit 2040c46

Browse files
Merge pull request #2512 from hwillson/more-fed2-directives
feat(federation): Update the Apollo Federation 2 `@link` imports
2 parents de7d62f + b23efe5 commit 2040c46

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export class TypeDefsFederation2Decorator {
1111
'@external',
1212
'@override',
1313
'@requires',
14+
'@tag',
15+
'@inaccessible',
16+
'@extends',
17+
'@provides',
1418
],
1519
importUrl = 'https://specs.apollo.dev/federation/v2.0',
1620
} = config;

packages/graphql/lib/interfaces/schema-file-config.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Federation2Config {
1010
version: 2;
1111
/**
1212
* The imported directives
13-
* @default ['@key', '@shareable', '@external', '@override', '@requires']
13+
* @default ['@key', '@shareable', '@external', '@override', '@requires', '@tag', '@inaccessible', '@extends', '@provides']
1414
*/
1515
directives?: (string | AliasDirectiveImport)[];
1616
/**

0 commit comments

Comments
 (0)