-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Support "out_name" in input types #41
Comments
This is now fully supported and works the same as in GraphQL-core. |
Is there a way to use this feature with an SDL-first approach? |
You will need to patch the schema setting the out_names to the input fields. Something like this will probably do: from graphql.pyutils import camel_to_snake
for field_name, field in schema.query_type.fields.items():
for arg_name, arg in field.args.items():
arg.out_name = camel_to_snake(arg_name) |
Thanks for the tip, I'll try this ASAP! |
GraphQL-Core supports an
out_name
for input types which is used by Graphene for passing parameters with transformed names to Python (because Python likes snake_case instead of camelCase).GraphQL-Core-Next should support a similar functionality that can be used by Graphene.
The text was updated successfully, but these errors were encountered: