Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composition-js/src/merging/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ class Merger {
supergraphElement: dest,
subgraphElements: sources,
// All we use the string of the next line for is to categorize source with a @key of the others.
elementToString: type => type.hasAppliedDirective('key') ? 'yes' : 'no',
elementToString: type => sourceAsEntity.find(entity => entity === type) ? 'yes' : 'no',
// Note that the first callback is for element that are "like the supergraph". As the supergraph has no @key ...
supergraphElementPrinter: (_, subgraphs) => `it has no @key in ${subgraphs}`,
otherElementsPrinter: (_, subgraphs) => ` but has some @key in ${subgraphs}`,
Expand Down