public class GqlClass
{
public NonNull Text { get; set; }
[Ignore]
public MyClass ToMyClass()
{
return new MyClass();
}
}
public class MyClass
{
public T SomeGenericMethod()
{
return default(T);
}
}
When I use the GqlClass in a Query class, the startup fails because the field derivation goes through the class "MyClass" and gets an error because of the generic type parameter:
"Cannot create an instance of GraphQL.Conventions.Adapters.Types.OutputObjectGraphType`1[T] because Type.ContainsGenericParameters is true."
Hi,
For example, I've got the following classes:
public class GqlClass { public NonNull Text { get; set; }
}
public class MyClass { public T SomeGenericMethod()
{
return default(T);
}
}
When I use the GqlClass in a Query class, the startup fails because the field derivation goes through the class "MyClass" and gets an error because of the generic type parameter:
"Cannot create an instance of GraphQL.Conventions.Adapters.Types.OutputObjectGraphType`1[T] because Type.ContainsGenericParameters is true."