We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Server Version: v2.46
OSS (Docker Compose setup)
When performing a GraphQL subscription on an MSSQL aggregate table, the response is partially stringified instead of being a proper JSON object.
Specifically, the aggregate result returns a JSON-encoded string rather than a structured JSON object.
For example, executing the following subscription:
subscription MySubscription { myTable_aggregate { aggregate { count } } }
Results in:
{ "data": { "myTable_aggregate": "{\"aggregate\":{\"count\":0}}" } }
This issue occurs only with subscriptions. Regular queries behave correctly.
The subscription should return a structured JSON object as queries do, for example:
{ "data": { "myTable_aggregate": { "aggregate": { "count": 0 } } } }
Driver={ODBC Driver 18 for SQL Server};Server=tcp:mssql,1433;Database=tempdb;Uid=sa;Pwd=Password1;Encrypt=optional
CREATE TABLE myTable ( id int NOT NULL PRIMARY KEY, name varchar(100) );
The subscription returns a partially stringified response:
The query behaves as expected.
The text was updated successfully, but these errors were encountered:
Thanks for this @Axel8555!
I'm tagging the relevant folks and adding the appropriate label(s) for us to triage.
cc @codedmart
Sorry, something went wrong.
No branches or pull requests
Version Information
Server Version: v2.46
Environment
OSS (Docker Compose setup)
What is the current behaviour?
When performing a GraphQL subscription on an MSSQL aggregate table, the response is partially stringified instead of being a proper JSON object.
Specifically, the aggregate result returns a JSON-encoded string rather than a structured JSON object.
For example, executing the following subscription:
Results in:
This issue occurs only with subscriptions. Regular queries behave correctly.
What is the expected behaviour?
The subscription should return a structured JSON object as queries do, for example:
How to reproduce the issue?
Screenshots or Screencast
The subscription returns a partially stringified response:

The query behaves as expected.

Keywords
The text was updated successfully, but these errors were encountered: