lib/graphql/schema/argument.rb in graphql-1.9.16 vs lib/graphql/schema/argument.rb in graphql-1.9.17
- old
+ new
@@ -119,9 +119,13 @@
# Apply the {prepare} configuration to `value`, using methods from `obj`.
# Used by the runtime.
# @api private
def prepare_value(obj, value)
+ if value.is_a?(GraphQL::Schema::InputObject)
+ value = value.prepare
+ end
+
if @prepare.nil?
value
elsif @prepare.is_a?(String) || @prepare.is_a?(Symbol)
obj.public_send(@prepare, value)
elsif @prepare.respond_to?(:call)