Querying camelCase but receiving snake_case
Aliases are working fine. I can rename things in my query. But the bad thing is, that in the result everything is snake_cased.
Is this line responsible for that?
https://github.com/d12/graphql-remote_loader/blob/6ee709baab2a4d5bc05208be927a233254fca982/lib/graphql/remote_loader/loader.rb#L156
Is the underscore necessary?
I am processing the resulting data in JavaScript with an existing code, based on camelCase data.
There was a different GraphQL server before. Now I am merging things together with your package and encountered the problem.
Hey @donni106 , We underscore because that's the convention in Ruby when parsing GraphQL results. I can see the usecase for non-underscored results though, I can look into putting some sort of optional functionality together soon. Or, if you have time, feel free to PR :)
It would be nice, if we could find an optional way. For now, I am transforming the keys with deeply renaming them in the frontend before accessing the resulting data.
I should be able to get to this in the next few days
This fell off my radar for a bit, I don't have a ton of time right now for non-functional or non-significant changes, but this should be an easy PR if anyone wants to add a camelCase config option.