hasura / hasura/graphql-engine

Bug: Hasura stringifies Custom Action outputs (at least for arrays).

Open
#6,781 3 comments 0 reactions 2 assignees Claimed by @0x777 View on GitHub
a/data c/server k/bug t/server t/server/data
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

We have a custom action with the following Output:
```graphql
type Output {
fields : [[String!]]
}
```

Our NodeJS server, when the custom action is called, returns this kind of results:
```js
{
"fields": [
["Key", "XXX"],
["Content-Type", "YYY"],
...
]
}
```

Yet, the browser receives this response:
```js
{
"my_action": {
"fields": "[[\"Key\", \"XXX\"], [\"Content-Type\", \"YYY\"]]",
"__typename": "Output"
}
}
```

This wasn't the case with Hasura 1.x.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.