-
Notifications
You must be signed in to change notification settings - Fork 326
ObjectMapperConfigurer not working (anymore) #97
Comments
I'm not seeing the related
You could try the following config for your @Bean
public ObjectMapperConfigurer objectMapperConfigurer(){
return mapper -> mapper.registerModule(new JavaTimeModule())
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
} Because of the mentioned missing items I couldn't really test it properly with the test case you provided. Nice improvements to that test util! Was thinking about extracting it together with some other features into a |
Hi, |
I like the idea with regarding the |
Found the |
Hi, I noticed that the acutal parsing happens from the graphql java tools which configures its own mapper.
|
Just saw that in of my own projects as well how to configure it. Glad you found it. There's already an open issue if it's possible to just use one |
What confuses me know is what the purpose of the |
Quickly looking at the current branch it indeed doesn't seem to be used. If you check the |
Hi, |
Don't know that either, perhaps it can be cleaned up. @apottere Any light you could shed on this? |
Hi, I saw that on the |
The resolution here is not completely clear. I would like to see the documentation improved, at the very least. I had to implement a combination of an ObjectMapperConfigurer with a custom schemaParserOptions bean, as maxb pointed out. |
Sounds great. Can you share how you did that? |
Hi,
I registered a
graphql.servlet.ObjectMapperConfigurer
bean that applies theJavaTimeModule
but it seems that it does not work and I'm getting the error:See this showcase test
It show cases a mutation that creates a post. The schema contains a
PostInput
with a date string field. The Java PostInput type is a LocalDateTime.The full diff: master...mxab:javatime
The text was updated successfully, but these errors were encountered: