Skip to content

Commit 6c9065e

Browse files
authored
Fix federation 2 @link in schema-first
Update graphql-federation-definitions.factory.ts
1 parent c2e408f commit 6c9065e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/graphql/lib/federation/graphql-federation-definitions.factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export class GraphQLFederationDefinitionsFactory extends GraphQLDefinitionsFacto
4141
// This leads to duplicated IQuery interfaces
4242
// see: https://github.com//issues/2344
4343
const mergedDefinition = mergeTypeDefs([printSubgraphSchema(schema)], {
44-
useSchemaDefinition: false,
44+
// schema-first requires the schema definition to be included for federation 2 @link to function
45+
useSchemaDefinition: true,
4546
throwOnConflict: true,
4647
commentDescriptions: true,
4748
reverseDirectives: true,

0 commit comments

Comments
 (0)