-
Notifications
You must be signed in to change notification settings - Fork 179
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
Using enums as argument default values is broken with graphql-core 3.1 #547
Labels
bug
Something isn't working
Milestone
Comments
This might work:
|
Are there any updates on this, or any help needed fixing this issue? |
This has PR that I need to give another look to see if it can be merged. |
This appears to be working on master:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ariadne 0.13.0 updated its dependency on graphql-core from 3.0 to 3.1. Something has changed in the treatment of argument default values in this version of graphql-core which means that any schema which defines an argument's default value using an enum no longer works in ariadne. The introspection query which is issued by GraphQL Playground throws an error with such a schema. The only way to avoid the error is to remove the default values from the schema definition entirely.
Example:
This works fine under the environment:
But when run under the environment:
It produces the error:
The text was updated successfully, but these errors were encountered: