Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing null value from the response #85

Open
pangivan opened this issue Jul 7, 2020 · 2 comments
Open

Removing null value from the response #85

pangivan opened this issue Jul 7, 2020 · 2 comments

Comments

@pangivan
Copy link

pangivan commented Jul 7, 2020

First of all, a very nice library. Great work for allowing dev to use the GraphQL in a very easy mode.
I'm coming across the issue that subscription response does not include the null value. After digging into the library, I have found the library was set to ignore NULL value which is located in ApolloMessage.class

static { mapper = (new ObjectMapper()).setSerializationInclusion(Include.NON_NULL); }

Therefore, it takes some effort to overwrite the whole ApolloProtocoHandler.class in order to include the null value.
I do understand that it may be designed in purpose, but it would be great if the developer can configure this param.

Leave the comment below, I'm interested in what's your option.

@kanutan93
Copy link

kanutan93 commented Apr 13, 2021

Hello, somebody has option for solving this problem without overwriting ApolloProtocoHandler.class?

@naderfares
Copy link

Any update on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants