hasura / hasura/graphql-engine
Graphql explorer is broken when scalar "bool" exists.
- 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
Assessment
This issue has not been assessed yet.