leangen / graphql-spqr-spring-boot-starter

Spring Boot 2 starter powered by GraphQL SPQR
Apache License 2.0
274 stars 68 forks source link

Customize ObjectMapper in ApolloMessage #35

Open szantogab opened 5 years ago

szantogab commented 5 years ago

Hi, awesome library, thanks for it!

Is it planned to be able to customize ObjectMapper in the ApolloMessage class?

My use case is that I'd like to serialize LocalDateTime as a string (by default it is serialized as an Object, it's really weird).

toanuraggupta commented 4 years ago

Hi szantogab,

Did u find any solution how we can we override mapper in graphql spqr ApolloMessage ? I also need to override it.

szantogab commented 4 years ago

@toanuraggupta currently the only way I've found is a hack, I copied ApolloMessage class into my project with the original package name so it replaces the original class in the library on the class path. :/