-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Limits errors in getVariableValues() #2062
Conversation
/** | ||
* Coerces a JavaScript value given a GraphQL Input Type. | ||
*/ | ||
export function coerceInputValue( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to create a new coerceInputValue
function sine coerceValue
is part of public API so we can't change its behavior.
In addition to that the new name is less confusing since GraphQL Spec defines Input coercion
and Result coercion
:
https://graphql.github.io/graphql-spec/draft/#sec-Scalars.Input-Coercion
It's draft PR (I still need to work on tests) but it would be great to get feedback on a new @SoyYoRafa @Cito Can you please take a look? |
ae9e34b
to
44adfee
Compare
I took a look after the fact, looks good. I thought about doing a similar thing but since I am not a maintainer, I didn't want to just rewrite parts of the code. |
@SoyYoRafa Thanks for the review 👍 |
Based on #2037