-
Notifications
You must be signed in to change notification settings - Fork 842
Scalar ParseValue not validating variable inputs #66
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
Comments
Hi @pyros2097 I just got a chance to look at the code you posted and ran it through both Hang on tight cos this issue has multiple layers to it: 1.
|
Hi @sogko, |
I have a scalar type which I use for validating inputs.
I have a mutation which is used to create an object with an ID. The length of the ID should be minimum 3 characters. So if I have a mutation like this,
this fails as the input a is less that 3 characters. But If I use a mutation with variables like this.
It passes. As per graphql-js the variables are sent to the parseValue function to get validated and any error with throw an error. This doesn't seem to be happening.
Here is the example code
The text was updated successfully, but these errors were encountered: