graphql-python / graphql-core

A Python 3.6+ port of the GraphQL.js reference implementation of GraphQL.
MIT License
512 stars 136 forks source link

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

Open rafalp opened 1 year ago

rafalp commented 1 year ago

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.