-
Notifications
You must be signed in to change notification settings - Fork 520
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
Possible bug with the :name option of Absinthe.Schema.Notation.field/4 #1126
Comments
Ping, can anyone have a look at this? it may be very easy to fix and we are available to provide more info and troubleshooting. |
Can you try using snake case instead of camel case in the name? E.g.: |
It works. That's strange; I thought |
I just ran into this today. I have something where I'd like to define a field on an input object but control the name of the field so that |
Environment
Absinthe.run!/3
Expected behavior
field/4
aliasing with:name
should work in aninput_object/3
.Actual behavior
field/4
aliasing with:name
doesn't work in aninput_object/3
.Relevant Schema/Middleware Code
Please inspect the following demo project and run
mix test
: https://github.com/srfsh/foo_barI think it only happens with fields that have more than one underscore. To demonstrate that, I added
shop_id
andawesome_owner_id
. You can removeshow_id
related code and try with onlyawesome_owner_id
(don't forget to run tests with and withoutawesome_
prefix if you do so).I'll put the result of the test here (please look at the messages):
With
shop_id
Without
shop_id
The text was updated successfully, but these errors were encountered: