We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
import graphql schema = graphql.build_ast_schema(graphql.parse(""" enum Enum { DEFAULT } input Input { enumField: Enum = DEFAULT }""")) print(schema.type_map['Input'].fields['enumField'].default_value)
produces None.
None
I guess I'm not really sure what it should be returning, but I think "DEFAULT" would be more appropriate than None.
"DEFAULT"
The text was updated successfully, but these errors were encountered:
Thanks for reporting. It boils down to this.
>>> schema = graphql.build_ast_schema(graphql.parse("enum Enum { DEFAULT }")) >>> print(schema.type_map['Enum'].values['DEFAULT'].value) None
So, it looks like the internal values of the enum types created from SDL are set to None.
I agree they should better be the same as the names.
Sorry, something went wrong.
2a1953f
Thanks for the quick fix!
Cito
No branches or pull requests
The following code:
produces
None
.I guess I'm not really sure what it should be returning, but I think
"DEFAULT"
would be more appropriate thanNone
.The text was updated successfully, but these errors were encountered: