absinthe-graphql / absinthe

The GraphQL toolkit for Elixir
http://absinthe-graphql.org
Other
4.29k stars 527 forks source link

Directive definition in SDL is snake cased #1346

Open jschniper opened 2 hours ago

jschniper commented 2 hours ago

Environment

Elixir 1.1.7.3 Absinthe 1.7.8 Apollo 3.9.11

Expected behavior

The directive definition and fields using the directive would both be camel cased

Actual behavior

When generating the SDL, the directive definition is snake cased directive @one_of on INPUT_OBJECT while the fields implementing the directive are properly camel cased input ValueInput @oneOf {

Relevant Schema/Middleware Code

There shouldn't be any middleware involved.

jschniper commented 2 hours ago

I'm happy to submit a PR but I'd probably need someone to point me in the right direction.

jschniper commented 2 hours ago

This all looks to be related to #1303. If I add the |> Absinthe.Utils.camelize(lower: true) line back I get the desired results. I don't know enough about why that was done though.