-
-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
I am attempting to link our graphql-compose-elasticsearch API with another API via graphql-tools. I am not able to get the introspectSchema(link) call to succeed. It throws an exception which looks to be coming from the graphql-compose-elasticsearch response to the introspection query.
At one point I was able to reproduce the error with the query below, although at the moment this query is now running properly. That's why I'm confident the error is originating in graphql-compose-elasticsearch. However, the introspectSchema(link) call is still failing with the error below.
{
__schema {
types {
inputFields {
defaultValue
}
}
}
}
That defaultValue seems to be the minimum case required to trigger the error. Here's the error I see in the response (value truncated beyond the interesting part)
{
"errors": [
{
"message": "Float cannot represent non numeric value: \"The default grows with the number of nodes in the cluster but is at most 256.\"",
"stack": [
"TypeError: Float cannot represent non numeric value: \"The default grows with the number of nodes in the cluster but is at most 256.\"",
" at GraphQLScalarType.serializeFloat [as serialize] (/usr/local/src/node_modules/graphql/type/scalars.js:102:11)",
" at astFromValue (/usr/local/src/node_modules/graphql/utilities/astFromValue.js:144:27)",
" at resolve (/usr/local/src/node_modules/graphql/type/introspection.js:402:125)",
" at resolveFieldValueOrError (/usr/local/src/node_modules/graphql/execution/execute.js:479:18)",
" at resolveField (/usr/local/src/node_modules/graphql/execution/execute.js:446:16)",
" at executeFields (/usr/local/src/node_modules/graphql/execution/execute.js:293:18)",
" at collectAndExecuteSubfields (/usr/local/src/node_modules/graphql/execution/execute.js:717:10)",
" at completeObjectValue (/usr/local/src/node_modules/graphql/execution/execute.js:707:10)",
" at completeValue (/usr/local/src/node_modules/graphql/execution/execute.js:598:12)",
" at completeValue (/usr/local/src/node_modules/graphql/execution/execute.js:565:21)"
]
}
],
"data": {
"__schema": {
"types": [
{
"inputFields": null
},
...
Metadata
Metadata
Assignees
Labels
No labels