hasura / hasura/graphql-engine

Graphql explorer is broken when scalar "bool" exists.

Open
#3,708 3 comments 0 reactions 1 assignee Claimed by @tirumaraiselvan View on GitHub
c/server support/needs-more-info
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Explorer is broken when there is a scalar named "bool".

IntrospectionQuery Result
```
{
"data": {
"__schema": {
"directives": [],
"mutationType": {
"name": "Mutation"
},
"queryType": {
"name": "Query"
},
"subscriptionType": null,
"types": [
{
"description": "",
"fields": [
{
"args": [
{
"defaultValue": null,
"description": "",
"name": "test",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "string",
"ofType": null
}
}
}
],
"description": "",
"name": "test",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "bool",
"ofType": null
}
}
},
{
"args": [],
"description": "",
"name": "version",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "string",
"ofType": null
}
}
}
],
"kind": "OBJECT",
"name": "Mutation"
},
{
"description": "",
"fields": [
{
"args": [],
"description": "",
"name": "version",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "string",
"ofType": null
}
}
}
],
"kind": "OBJECT",
"name": "Query"
},
{
"description": "",
"fields": [],
"kind": "SCALAR",
"name": "bool"
},
{
"description": "",
"fields": [],
"kind": "SCALAR",
"name": "string"
}
]
}
},
"errors": null
}
```

Got an error":{"path":"$","error":"type info not found for: 'bool'","code":"unexpected"}

query and mutation still works, but graphql explorer is broken.

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.