Closed sustainjane98 closed 1 year ago
You can write a custom serializer in the schema like that:
fun SchemaBuilder.serializerDate() {
longScalar<Date> {
serialize = { date -> date.time }
deserialize = { dateString -> Date(dateString) }
}
}
When I create a data class like this:
And thewn create a query resolver like this:
I get the following error:
Is there any way to tell the framework to use a custom serializer, to fix this?