graphql-engine
graphql-engine copied to clipboard
Executing query fields defined by remote schema with input variables will not cause errors
Version Information
Server Version: v2.7.0
Environment
OSS
What is the expected behaviour?
Executing query fields defined by remote schema with input variables will not cause errors.
What is the current behaviour?
Executing query fields defined by remote schema with input variables will cause errors.
{
"data": null,
"errors": [
{
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
},
"message": "Unknown type \"spacex_order_by\". Did you mean \"users_order_by\", \"order_by\", \"users_max_order_by\", \"users_min_order_by\", or \"users_aggregate_order_by\"?",
"locations": [
{
"line": 1,
"column": 34
}
]
}
]
}
How to reproduce the issue?
- Add remote schema
- Add type names prefix
- Execute graphql query that have input arguments including type prefixed enum
or
- Clone and Setup this repository
- Execute graphql query as described in README.md
Screenshots or Screencast
The error occurs if passed via arguments

The error does not occur if passed directly arguments

Experiencing the same issue with graphql-server v2.11.2
{
"data": null,
"errors": [
{
"extensions": {
"code": "validation-failed",
"path": "$.selectionSet.organization_config.args.order_by[0].org_id"
},
"message": "variable \"hasura_json_var_1\" is declared as signals_order_by, but used where order_by is expected"
}
]
}