There was an error while loading. Please reload this page.
1 parent ba856de commit ea36952Copy full SHA for ea36952
src/GraphQL.Conventions/Adapters/GraphTypeAdapter.cs
@@ -73,7 +73,7 @@ private object DeriveTypeFromTypeInfo(Type type)
73
{
74
return graphType;
75
}
76
- return Activator.CreateInstance(type);
+ return type.IsInterface ? null : Activator.CreateInstance(type);
77
78
79
private IObjectGraphType DeriveOperationType(GraphTypeInfo typeInfo) =>
0 commit comments