graphql-core icon indicating copy to clipboard operation
graphql-core copied to clipboard

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

Open rafalp opened this issue 2 years ago • 0 comments

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 avatar Jul 13 '23 12:07 rafalp