Skip to content

Commit 2affc65

Browse files
[Fusion] Do not apply @Shareable to interfaces in compatibility mode (#8974)
1 parent 54df27c commit 2affc65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ private void ApplyShareableDirectives()
5959
{
6060
foreach (var sourceSchema in schemas.Except([schema]))
6161
{
62-
foreach (var type in schema.Types.OfType<MutableComplexTypeDefinition>())
62+
foreach (var type in schema.Types.OfType<MutableObjectTypeDefinition>())
6363
{
64-
if (!sourceSchema.Types.TryGetType<MutableComplexTypeDefinition>(type.Name, out var otherType))
64+
if (!sourceSchema.Types.TryGetType<MutableObjectTypeDefinition>(type.Name, out var otherType))
6565
{
6666
continue;
6767
}

0 commit comments

Comments
 (0)