mirumee/ariadne

Camel case arguments

Closed this issue · 2 comments

i have sth like this articles(first: Int!, after: ID, isFeatured: Boolean): ArticleCollection!

in resolvers code i must have sth like this:
@staticmethod
def resolve_articles(
category: CategoryProxy,
info: GraphQLResolveInfo,
first: int,
after: str | None = None,
isFeatured: bool | None = None,
):

i Would prefere to have this as python case

desirable resolver should look like this

@staticmethod
def resolve_articles(
category: CategoryProxy,
info: GraphQLResolveInfo,
first: int,
after: str | None = None,
is_featured: bool | None = None,
):

Add convert_names_case=True to the make_executable_schema call to enable this.

https://ariadnegraphql.org/docs/case-conversion

thanks!