Skip to content

Commit c3fff2a

Browse files
authored
[Fusion] Updated NonNullInputFieldIsInaccessibleRule (#9043)
1 parent 91f1eae commit c3fff2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/HotChocolate/Fusion-vnext/src/Fusion.Composition/PostMergeValidationRules/NonNullInputFieldIsInaccessibleRule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public void Handle(SchemaEvent @event, CompositionContext context)
2929
.SelectMany(
3030
s => s.Types
3131
.OfType<MutableInputObjectTypeDefinition>()
32+
// Filter out input object types that do not exist in the composed schema.
33+
.Where(t => schema.Types.ContainsName(t.Name))
3234
.SelectMany(
3335
t => t.Fields.AsEnumerable().Select(f => new InputFieldInfo(f, t, s))));
3436

0 commit comments

Comments
 (0)