Cannot use java.util.Date #1198
-
My data has some fileds that type is 'java.util.Date'.
[application.properties] I've checked the java.util.Data class and like this. Please help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
One of the reasons we explicitly require See https://expediagroup.github.io/graphql-kotlin/docs/schema-generator/writing-schemas/scalars#custom-scalars. You will need to provide custom hook + logic to coerce the values (i.e. how to serialize/deserialize |
Beta Was this translation helpful? Give feedback.
One of the reasons we explicitly require
graphql.packages
property is to limit the scope of which packages can be scanned and we don't accidentally expose something we are not supposed to (likejava.util.*
).See https://expediagroup.github.io/graphql-kotlin/docs/schema-generator/writing-schemas/scalars#custom-scalars. You will need to provide custom hook + logic to coerce the values (i.e. how to serialize/deserialize
Date
representation).