juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
41 stars 6 forks source link

Allow explicit creation of interface types from non-abstract classes #20

Open tigloo opened 9 months ago

tigloo commented 9 months ago

I have a schema that has the following:

Due to this I need to expose "Resource" as an interface but also be able to deserialize it as a partial type. I would like to be able to generate a class-based schema using code generation but since Resource needs to be abstract in order to be generated as an interface, I can't deserialize it.