graphql-python / gql-next

A Python GraphQL Client library providing ability to validate and make type-safe GraphQL calls
77 stars 7 forks source link

Translate names to snake-case #7

Open aviv-ebates opened 5 years ago

aviv-ebates commented 5 years ago

Graphene translates snake-cased python keys to camel-case gql names. gql should do the reverse translation.

ekampf commented 5 years ago

I thought about it (Lior also asked) and I don't think I want to do it. I think that when consuming GraphQL its easier to look at the response the same way you'd look at what comes down the wire (and what's written in the docs of the API you're consuming)

aviv-ebates commented 5 years ago

As long as pylint (etc) doesn't mind (and I guess it won't, because the code creating this is out-of-scope), it's probably fine.