Skip to content

Use Argument names as configured (fix args with numbers)#2792

Merged
rmosolgo merged 3 commits intomasterfrom
fix-args-with-numbers
Mar 2, 2020
Merged

Use Argument names as configured (fix args with numbers)#2792
rmosolgo merged 3 commits intomasterfrom
fix-args-with-numbers

Conversation

@rmosolgo
Copy link
Copy Markdown
Owner

@rmosolgo rmosolgo commented Mar 2, 2020

Currently, GraphQL-Ruby doesn't use the provided symbol to build keyword arguments, which is confusing.

So instead, if argument(...) is configured with a symbol, use the given symbol for the method's keyword arguments.

This can break existing configurations if they configured arguments with camelized symbols, but expected underscored arguments in their methods (see the change in the test suite, for example).

Fixes #2611
Fixes #2654 (this approach maintains current behavior)
Fixes #2706
Fixes #1839

@rmosolgo rmosolgo merged commit 7ecaeec into master Mar 2, 2020
@TomasBarry
Copy link
Copy Markdown
Contributor

Thanks for tackling this @rmosolgo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants