Skip to content

Commit

Permalink
Fix federation 2 @link in schema-first
Browse files Browse the repository at this point in the history
Update graphql-federation-definitions.factory.ts
  • Loading branch information
burn2delete authored Dec 21, 2023
1 parent c2e408f commit 6c9065e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class GraphQLFederationDefinitionsFactory extends GraphQLDefinitionsFacto
// This leads to duplicated IQuery interfaces
// see: https://github.com//issues/2344
const mergedDefinition = mergeTypeDefs([printSubgraphSchema(schema)], {
useSchemaDefinition: false,
// schema-first requires the schema definition to be included for federation 2 @link to function
useSchemaDefinition: true,
throwOnConflict: true,
commentDescriptions: true,
reverseDirectives: true,
Expand Down

0 comments on commit 6c9065e

Please sign in to comment.