-
Notifications
You must be signed in to change notification settings - Fork 107
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
Bug when parsing dynamic query string #141
Comments
More reference to back up |
After digging further, I realised that youshido/graphql will set Boolean input to false as the default value if it is not provided.
Output
This should prove that it is indeed a bug? |
@viniychuk is this ticket going anywhere? Would appreciate your input. |
@dilab I believe it should throw an error because you actually specified a variable on the client side and never sent it. |
Test Field
Query with dynamic variables
Query string
Query variable
{}
Result
Bug
IMO, in this case, "id" should not be set because client-side has never sent the "id" variable. By setting a default NULL value cause confusion and lead to bugs.
The text was updated successfully, but these errors were encountered: