https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
p

pcarrier

12/01/2020, 5:11 AM
Hi! Trying graphql-kotlin for the first time with 3.6.8 and 4.0.0-alpha.7 for a small control plane, and running into trouble with:
Copy code
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
sealed class Command {
	@JsonTypeName("ResetCursorPosition")
	data class ResetCursorPosition(
		val dataSource: String, val position: Instant
	) : Command()
}
which causes a failure in
assertTypeUniqueness
; might I be missing some semi-obvious gotchas with the current implementation? Is it worth trying to minimize to a reproduction case? Otherwise the DX has been great so far.
Neeevermind, can't just receive an input with a list of union typed as a field.
s

Shane Myrick

12/01/2020, 6:00 AM
Hello, I see you have figured out your issue. However if there is some better error message that you think could be helpful, external contributions are always welcome!
4 Views