We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in the old api, something like this works:
class MyPreparer def call(arg, ctx) # ... end end # then somewhere else argument :id, !types.ID, "Vehicle Model ID", prepare: MyPreparer.new
but in the class based api it seems that prepare must be a Proc: https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/schema/argument.rb#L99
prepare
Proc
would you accept a pr that allows anything that responds to #call here or was this decision intentional?
#call
thanks!
The text was updated successfully, but these errors were encountered:
It was accidental! A PR would be great.
Sorry, something went wrong.
ping - any issues with the pr as-is?
434408a
Merge pull request #1787 from modosc/allow-callable-prepares
50d3b33
support callable prepare objects in Schema::Argument (fixes #1786)
No branches or pull requests
in the old api, something like this works:
but in the class based api it seems that
prepare
must be aProc
:https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/schema/argument.rb#L99
would you accept a pr that allows anything that responds to
#call
here or was this decision intentional?thanks!
The text was updated successfully, but these errors were encountered: