-
Notifications
You must be signed in to change notification settings - Fork 326
Spring Boot Object mapper #65
Comments
This is tough because there are cases where you'll want your graphql object mapper to behave differently than your spring object mapper. Passing the spring object mapper to graphql-java-servlet automatically would make it impossible to differentiate. |
I think by default you would expect spring's default object mapper but I also understand that you may want to configure it differently. |
@oliemansm I have some suggestion to solve this issue. First we would need to move the instantiations of the per field objectmapper in the to a provider/factory Similar but only for the one objectmapper that is constructed by the servlet Finally can provide these providers that just passthrough the available objectmapper provided by spring boot for both tools and servlet |
@mxab Nice! I've created PRs for them so we can get them merged and released. |
@mxab Can you give me write permissions on your branch in spring-boot? I merged in master to fix conflicts. That has to be pushed before it can be merged. |
Cool! |
Hello,
I there any possibility to share Jackson Object Mapper between Spring Boot and GraphQL?
Instead of duplicating code like this
GraphQL
Spring Boot
The text was updated successfully, but these errors were encountered: