-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
There is an old issue #1057 for that.
It has been fixed in #1104. But It does not work for now (v16.3.0).
graphql-js/src/execution/execute.ts
Lines 783 to 795 in b38429f
function completeLeafValue( | |
returnType: GraphQLLeafType, | |
result: unknown, | |
): unknown { | |
const serializedResult = returnType.serialize(result); | |
if (serializedResult == null) { | |
throw new Error( | |
`Expected \`${inspect(returnType)}.serialize(${inspect(result)})\` to ` + | |
`return non-nullable value, returned: ${inspect(serializedResult)}`, | |
); | |
} | |
return serializedResult; | |
} |
@leebyron Is it a mistake or as expected?