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

NullIgnoreCondition is not working for websockets AddHttpResponseFormatter on HttpResponseFormatterOptions #7753

Open
baytekink opened this issue Nov 21, 2024 · 0 comments
Assignees
Milestone

Comments

@baytekink
Copy link

Product

Hot Chocolate

Is your feature request related to a problem?

Websocket messages can also be changed by size removing null entries.

The solution you'd like

As far as I saw, web socket payload message is converted into json string in GraphQLOverWebSocketProtocolHandler (namespace HotChocolate.AspNetCore.Subscriptions.Protocols.GraphQLOverWebSocket), formatter is private readonly JsonResultFormatter _formatter = new(); Can we change this formatter from dependency injection, it would be nice if we can ignore null values when sending message over websockets. Thx in advance

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

No branches or pull requests

3 participants