File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/HotChocolate/Fusion-vnext/src/Fusion.Composition Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments