gql-next icon indicating copy to clipboard operation
gql-next copied to clipboard

Translate names to snake-case

Open aviv-ebates opened this issue 6 years ago • 2 comments

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

aviv-ebates avatar Dec 19 '18 18:12 aviv-ebates

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)

ekampf avatar Dec 19 '18 20:12 ekampf

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.

aviv-ebates avatar Dec 19 '18 22:12 aviv-ebates