com.expediagroup.graphql.exceptions.TypeNotSupportedException: Cannot convert java.time.LocalDateTime? since it is not a valid GraphQL type or outside the supported packages
is there an easy fix for this?
d
Dariusz Kuc
04/29/2020, 2:07 PM
you could expose it through the hook and configure jackson to correctly serialize/deserialize it
Dariusz Kuc
04/29/2020, 2:09 PM
what we did instead is to represent date time objects explicitly to avoid any ambiguity
Dariusz Kuc
04/29/2020, 2:10 PM
e.g. if local date time is serialized to a string what is the correct format? obviously you could add a comment saying what is expected format and then some validation around it but that would still result in error at runtime
Dariusz Kuc
04/29/2020, 2:11 PM
if you expose those objects explicitly then you avoid any ambiguity, e.g.