lib/graphql/language/printer.rb in graphql-1.8.0.pre4 vs lib/graphql/language/printer.rb in graphql-1.8.0.pre5
- old
+ new
@@ -91,10 +91,10 @@
out << print_selections(inline_fragment.selections, indent: indent)
out
end
def print_input_object(input_object)
- print_node(input_object.to_h)
+ "{#{input_object.arguments.map { |a| "#{a.name}: #{print(a.value)}" }.join(", ")}}"
end
def print_list_type(list_type)
"[#{print_node(list_type.of_type)}]".dup
end