Interfaces implemented by schema root are not generated #2756
Labels
bug
Generally incorrect behavior
codegen
Issues related to or arising from code generation
planned-next
Slated to be included in the next release
Milestone
Summary
Interfaces that are implemented on the root note of a schema are not generated. Code generation does not produce any errors or warning but the generated code will not compile due to the missing interface.
I tried to produce a minimal schema and example query to illustrate the problem below.
The previous (non-swift) code generation tool did not have this issue.
Version
1.0.5
Steps to reproduce the behavior
Consider the following schema
We have a one simple query defined in our project:
After building and running the code generation tool for release
1.0.5
the generated query looks correct but in our Query type we are referencing an interface that was never generated causing a compilation error:The text was updated successfully, but these errors were encountered: