lib/graphql/query/literal_input.rb in graphql-0.14.0 vs lib/graphql/query/literal_input.rb in graphql-0.14.1
- old
+ new
@@ -19,10 +19,10 @@
arg_value = nil
if ast_arg
arg_value = coerce(arg_defn.type, ast_arg.value, variables)
end
if arg_value.nil?
- arg_value = arg_defn.default_value
+ arg_value = arg_defn.type.coerce_input(arg_defn.default_value)
end
values_hash[arg_name] = arg_value
end
GraphQL::Query::Arguments.new(values_hash)
end