walmartlabs / lacinia

GraphQL implementation in pure Clojure
http://lacinia.readthedocs.io/en/latest/
Other
1.81k stars 162 forks source link

Convert the keys of arguments and variables to kebab-case #439

Open wickedev opened 1 year ago

wickedev commented 1 year ago

I would like to convert the keys of arguments and variables to kebab-case, while keeping the use of camelCase for SDL (or edn) cases. Is there an official way to do this or a way that I can contribute to achieve it?

hlship commented 1 year ago

There isn't a good way to do this; previous attempts to do stuff like this ended up being a bit of a mess. I know I prefer to keep the names consistent from database, through Clojure code, and into the GraphQL, even if the :namesAreABitOdd.