Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive definition in SDL is snake cased #1346

Open
jschniper opened this issue Nov 18, 2024 · 2 comments
Open

Directive definition in SDL is snake cased #1346

jschniper opened this issue Nov 18, 2024 · 2 comments

Comments

@jschniper
Copy link

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
Copy link
Author

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

@jschniper
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant