lib/graphql/query/literal_input.rb in graphql-0.18.15 vs lib/graphql/query/literal_input.rb in graphql-0.19.0

- old
+ new

@@ -14,10 +14,10 @@ def self.from_arguments(ast_arguments, argument_defns, variables) values_hash = {} argument_defns.each do |arg_name, arg_defn| ast_arg = ast_arguments.find { |ast_arg| ast_arg.name == arg_name } - arg_default_value = arg_defn.type.coerce_input(arg_defn.default_value) + arg_default_value = arg_defn.default_value if ast_arg.nil? && arg_default_value.nil? # If it wasn't in the document, # and there's no provided default, # then don't pass it to the resolve function next