Closed Leopard2A5 closed 4 years ago
If i change the definition of QualificationItem to
sealed class QualificationItem(val dummy: String = "dummy") {
data class Qual1(
val id: String
) : QualificationItem()
}
then there's no error, however the introspection query returns (some types omitted)
{
"data": {
"__schema": {
"types": [
{
"kind": "INTERFACE",
"name": "QualificationItem"
},
{
"kind": "UNION",
"name": "QualificationItem"
}
]
}
}
}
QualificationItem is defined once as an interface and once as a union. I suspect that the interface definition comes from the type's usage in Wrapper and the union def comes from the explicit unionType call.
@jeggy what do you think?
Thanks for these issues! These are exactly the kind of testing we need more of đ
Glad I could help, I really like the library đ Keep up the good work!
Hope we can get a 0.15.3 soonish? This issue has been blocking me :)
Yes, this will be available within 0.15.3 after this pipeline finishes đ
This fails with
The error disappears when you change the content of wrapper from a List to just QualificationItem.
Can't reproduce it, but i thought I'd seen QualificationItem show up as a type twice, once as an interface, once as a union.