eamigo86 / graphene-django-extras

Extras functionalities for Graphene-Django
MIT License
417 stars 106 forks source link

support auto_camelcase=False #72

Open jeffcjohnson opened 6 years ago

jeffcjohnson commented 6 years ago

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?

eamigo86 commented 6 years ago

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

jeffcjohnson commented 6 years ago

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