Skip to content

Commit 9a282ae

Browse files
committed
fix(schema-first): add explanation about merging
1 parent 60ababc commit 9a282ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export class GraphQLFederationDefinitionsFactory extends GraphQLDefinitionsFacto
3737
},
3838
]);
3939

40+
// buildSubgraphSchema fills empty Query definition if there is `extend type Query` definition without original `type Query` definition.
41+
// This causes duplicate IQuery interfaces.
42+
// see: https://github.com/nestjs/graphql/issues/2344
4043
const mergedDefinition = mergeTypeDefs([printSubgraphSchema(schema)], {
4144
useSchemaDefinition: false,
4245
throwOnConflict: true,

0 commit comments

Comments
 (0)