Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve original coercion errors, improve error quality. #1133

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

leebyron
Copy link
Contributor

@leebyron leebyron commented Dec 9, 2017

This is a fairly major refactoring of coerceValue which returns an Either so it can return a complete collection of errors. This allows originalError to be preserved for scalar coercion errors and ensures all errors are represented in the response.

This had a minor change to the logic in execute / subscribe to allow for buildExecutionContext to abrupt complete with multiple errors.

Fixes #821

@leebyron leebyron force-pushed the preserve-coercion-errors branch 2 times, most recently from f0b72df to bb85e38 Compare December 9, 2017 02:58
This is a fairly major refactoring of coerceValue which returns an Either so it can return a complete collection of errors. This allows originalError to be preserved for scalar coercion errors and ensures *all* errors are represented in the response.

This had a minor change to the logic in execute / subscribe to allow for buildExecutionContext to abrupt complete with multiple errors.
@leebyron leebyron force-pushed the preserve-coercion-errors branch from bb85e38 to 65283d6 Compare December 11, 2017 20:45
@leebyron leebyron merged commit 2536f14 into master Dec 11, 2017
@leebyron leebyron deleted the preserve-coercion-errors branch December 11, 2017 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants