Any Ideas on How to do this? Cannot figure out how to get custom object mapper settings to be used #249
Replies: 2 comments 7 replies
-
|
@paulbakker ?? how can i fix this? |
Beta Was this translation helpful? Give feedback.
-
|
Any reason not to consider implementing something similar as spring boot MvC offers with This would offer this very flexibility. It would also open integration points for frameworks like https://github.com/Blazebit/blaze-persistence when implementing support for Mutations - offering an integration for DGS like e.g. is offered for spring MvC with https://github.com/Blazebit/blaze-persistence/tree/master/integration/spring-data/webmvc This would open up for integrations into DGS, which might be valuable? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running a small DGS app and have a Configuration class that is configuring a custom object mapper, but no matter what I try it doesn't seem to be getting recognized?? I have a 'null' field in the output that I am trying to suppress, but no matter what i try, it still gets serialized as null.. The configuration class is below and I have debug in it showing it does get executed from the SpringBootApplication context loading.
Help!!
{ "data": { "federatedFavoriteProduct": { "id": "581d20a052d9d339cbe5c30a", "productId": 606506412, "product": { "id": 606506412, "name": "TestProduct", "description": null } } } }`@Configuration
@slf4j
public class ProductDgsConfig {
}`
Beta Was this translation helpful? Give feedback.
All reactions