github ChilliCream/hotchocolate 0.2.3

  • Fixed Generic Type issues with Object Types

The following code lead to a schema exception:

  Schema.Create(d => d.RegisterType<ObjectType<Foo<Bar>>>());

The schema exception was caused by an invalid handling of the generic type names during resolver code generation. Moreover, the inferred object type name would have been Foo`1 which would have then caused another schema exception.

We know create the following schema from the above code:

  type FooOfBar {
    Bar bar
  }
latest releases: 11.0.9-preview.3, 11.0.9-preview.2, 11.0.9-preview.1...
2 years ago