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

Open
rafalp opened this issue Jul 13, 2023 · 0 comments
Open

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
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

1 participant