Open NathanPB opened 3 years ago
Also tried this and got the same behavior:
@Serializable
class Internal(
val uid: String,
@Transient val profile: UserProfile? = findUserById(uid)
) : Person()
unionType<Person>()
and this too
unionType<Person>() {
type<Person.Internal>() {
property(Person.Internal::uid) {}
property<UserProfile?>("profile") {
resolver { findUserById(it.uid) }
}
}
}
Hello, I'm trying to build a data structure that looks like this:
The thing actually works as expected, but when I open the Playground I lose the autocomplete and I see this error in the browser console:
Uncaught Error: Expected Person to be a GraphQL Interface type.
.Since it works it's acceptable, but losing the autocomplete is annoying. Any suggestions on how to make this work?