-
Notifications
You must be signed in to change notification settings - Fork 2
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
Variable \"$value\" expected value of type \"UniqueEnum\" which cannot be used as an input type #174
Comments
Ahah! Thanks! I hadn't considered that variables could be more relaxed than the corresponding input arguments because of default values. This is most certainly a bug. Thanks for pointing it out and thanks for being the first person besides me to raise an issue and PR! Welcome! |
It's pleasure for me to be helpful in this project ❤️ |
Fixed in #176, available in latest release. Thanks @dimatillck !!! |
This is great!! 🎉 Thank you @yaacovCR |
Hi, I'm getting such an error if using a non-nullable arg of type Enum with a default value and corresponding nullable variable in case there is no nullable arg of the same type in the schema.
It looks like
_toExecutorSchema
adds the non-nullable version of the enum to theinputTypes
Set and to thetypeTree
. ThencoerceVariableValues
tries to get a nullable version of the enum (because of nullable variable) from theinputTypes
Set and from thetypeTree
. It cannot do that because there is the only non-nullable version of the enum.The text was updated successfully, but these errors were encountered: