Skip to content

Confusing Message for Uncoercible List Variable Value #71

@kevin-carroll

Description

@kevin-carroll

When a supplied value for a list variable is not coercible into the required type specified by the operation the error message can be confusing at times:

image

While the variable is correctly trapped and the query failed, the message indicates that a value of null was not valid. This is because the list resolver, when it fails to coerce a value, returns null. The list value resolver should throw an UnresolvedValueException like the scalar resolvers do and supply the appropriate information indicating the reason for failure.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions