fix: Selection set initializers for fragment type cases #3487
Labels
codegen
Issues related to or arising from code generation
planned-next
Slated to be included in the next release
Milestone
Related to #3482.
When a fragment type case is declared on a union that does not matches the field type the selection set initializer parameters are missing. See sample below and take note of the
size
field types and the type case used on theBigOrSmallFragment
declaration. In the generated Swift code you will also notice that theAnimal.AsCat.Size.AsBigOrSmall
initializer properties are missing.There are two possible fixes (2 is preferred):
Schema:
Operation:
The text was updated successfully, but these errors were encountered: