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

stringifyNum doesn't stringify aggregates or ids #5704

Closed
sordina opened this issue Sep 1, 2020 · 0 comments
Closed

stringifyNum doesn't stringify aggregates or ids #5704

sordina opened this issue Sep 1, 2020 · 0 comments
Labels
c/server Related to server

Comments

@sordina
Copy link
Contributor

sordina commented Sep 1, 2020

Enabling the "stringifyNum" option only seems to stringify direct column references to normal Num values.

Chinook example query:

{ tracks(limit:1) { unit_price }
  tracks_aggregate {
    aggregate { sum { unit_price } } } }

Response:

{
  "data": {
    "tracks": [
      {  "unit_price": "0.99"  }  ],
    "tracks_aggregate": {
      "aggregate": {
        "sum": {
          "unit_price": 3680.97  }  }  }  } }

Expected Response:

{
  "data": {
    "tracks": [
      {  "unit_price": "0.99"  }  ],
    "tracks_aggregate": {
      "aggregate": {
        "sum": {
          "unit_price": "3680.97"  }  }  }  } }
@ecthiender ecthiender added the c/server Related to server label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server
Projects
None yet
Development

No branches or pull requests

2 participants