Camel case arguments
Closed this issue · 2 comments
bszema commented
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,
):
rafalp commented
Add convert_names_case=True
to the make_executable_schema
call to enable this.
bszema commented
thanks!