Skip to content

Commit 146341b

Browse files
[Fusion] Do not consider keys in other source schemas for compatibility mode (#8975)
1 parent 2affc65 commit 146341b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/HotChocolate/Fusion-vnext/src/Fusion.Composition/SourceSchemaPreprocessor.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ private void ApplyShareableDirectives()
7373
keyLookup.Add(fieldsArgument);
7474
}
7575

76-
var otherKeyLookup = new HashSet<string>();
77-
foreach (var keyDirective in otherType.GetKeyDirectives())
78-
{
79-
var fieldsArgument = (string)keyDirective.Arguments[ArgumentNames.Fields].Value!;
80-
otherKeyLookup.Add(fieldsArgument);
81-
}
82-
8376
foreach (var field in type.Fields)
8477
{
8578
if (keyLookup.Contains(field.Name))
@@ -94,8 +87,7 @@ private void ApplyShareableDirectives()
9487

9588
if (!otherType.Fields.TryGetField(field.Name, out var otherField)
9689
|| otherField.Directives.ContainsName(Internal)
97-
|| otherField.Directives.ContainsName(Inaccessible)
98-
|| otherKeyLookup.Contains(field.Name))
90+
|| otherField.Directives.ContainsName(Inaccessible))
9991
{
10092
continue;
10193
}

0 commit comments

Comments
 (0)