graphene-django-extras icon indicating copy to clipboard operation
graphene-django-extras copied to clipboard

support auto_camelcase=False

Open jeffcjohnson opened this issue 7 years ago • 2 comments

I was happy to learn that graphene added support for turning off camel casing field names.

schema = graphene.Schema(query=Query, auto_camelcase=False)

It all seems to work except for DjangoListObjectType has totalCount. I tried changing it to total_count in the code and was hoping it would get auto-camel cased to totalCount or not depending on the auto_camelcase setting but it didn't.

I don't know the code well enough to provide a PR. Is this something that could be supported?

jeffcjohnson avatar Sep 21 '18 18:09 jeffcjohnson

Hi @jeffcjohnson, It can be perfectly supported, in the next days I will release a release that will have a few improvements, including this one. Thanks for reporting. Best regards

eamigo86 avatar Sep 22 '18 11:09 eamigo86

Great, I look forward to the new release and thank you, @eamigo86, for providing this package!

jeffcjohnson avatar Sep 24 '18 13:09 jeffcjohnson