Skip to content
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

out_name is not respected for input objects used as default argument value #206

Closed
rafalp opened this issue Jul 13, 2023 · 2 comments
Closed

Comments

@rafalp
Copy link
Contributor

rafalp commented Jul 13, 2023

Considering this schema:

type Query {
  search(filters: SearchFilters = { pageSize: 20 }): [Result!]!
}

input SearchFilters {
  pageSize: Int!
}

type Result {
  id: ID!
}

Where pageSize's out_name is page_size, when no custom pageSize value is included in query, the resolver is called with {"pageSize": 20} kwarg, resulting in Python error in query execution.

@rafalp rafalp changed the title out_name is not respected for default arguments out_name is not respected for input objects used as default argument value Jul 13, 2023
@Cito
Copy link
Member

Cito commented Jan 26, 2025

Sorry for the late response. This is now fixed in 651ca5c and will be released soon.

@Cito
Copy link
Member

Cito commented Jan 26, 2025

The fix is now available in v3.3.0a7 and v3.2.6.

@Cito Cito closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants