please use threads so it is easier to follow --- g...
# graphql-kotlin
d
please use threads so it is easier to follow --- generally that error implies that you are trying to use some generic object in the graph, i.e.
Foo<T>
, without seeing the whole schema it is hard to say
s
It seems to choke on a Long
Copy code
data class TransmissionStatus(
    val documentId: String,
    val status: String,
    val version: Long,
    val logs: List<TransmissionStatusLog>
)

data class TransmissionStatusLog(
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "UTC")
    val createdAt: ZonedDateTime,
    val state: String,
    val reasons: List<TransmissionReason>
)

data class TransmissionReason(
    val code: String,
    val text: String
)
Screenshot 2023-06-13 at 16.14.02.png
Which I would have hoped would have at least failed with the same error as the BigDecimal
d
s
No I forgot, but the error was totally misleading. The BigDecimal was easy as it told me exactly what I was doing wrong. Either this one I had to debug into the code to figure out that I had missed that. There are about 360 data classes and all use Int for integers except 1, so I forgive myself the oversight 😎
d
yeah I would expect it to complain that the target class is outside of supported packages