You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI: I use mergeSchema from apollo-server-express to combine multiple schemas.
Here is full error log:
{
"errors": [
{
"message": "Expected a value of type \"StatusEnum\" but received: \"ACTIVE\"",
"locations": [
{
"line": 3,
"column": 5
}
],
"path": [
"getTestTask",
"status"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"stacktrace": [
"Error: Expected a value of type \"StatusEnum\" but received: \"ACTIVE\"",
" at completeLeafValue (/code/xxx/node_modules/graphql/execution/execute.js:638:11)",
" at completeValue (/code/xxx/node_modules/graphql/execution/execute.js:579:12)",
" at completeValueCatchingError (/code/xxx/node_modules/graphql/execution/execute.js:495:19)",
" at resolveField (/code/xxx/node_modules/graphql/execution/execute.js:435:10)",
" at executeFields (/code/xxx/node_modules/graphql/execution/execute.js:275:18)",
" at collectAndExecuteSubfields (/code/xxx/node_modules/graphql/execution/execute.js:713:10)",
" at completeObjectValue (/code/xxx/node_modules/graphql/execution/execute.js:703:10)",
" at completeValue (/code/xxx/node_modules/graphql/execution/execute.js:591:12)",
" at completeValue (/code/xxx/node_modules/graphql/execution/execute.js:557:21)",
" at /code/xxx/node_modules/graphql/execution/execute.js:492:16"
]
}
}
}
],
"data": {
"getTestTask": {
"status": null
}
}
}
The text was updated successfully, but these errors were encountered:
taddyhuo
changed the title
Internal Values for Enum doesn't work
Internal Values for Enum doesn't work with mergeSchema
Mar 9, 2020
I was trying to follow https://www.apollographql.com/docs/graphql-tools/scalars/#internal-values
TypeDefs:
Resolvers:
query:
However, I got
"Expected a value of type \"StatusEnum\" but received: \"ACTIVE\""
. Any idea why?graphql: 14.6.0
graphql-tools: 4.0.7
apollo-server-express: 2.11.0
FYI: I use
mergeSchema
fromapollo-server-express
to combine multiple schemas.Here is full error log:
The text was updated successfully, but these errors were encountered: