lib/graphql/schema/printer.rb in graphql-1.5.5 vs lib/graphql/schema/printer.rb in graphql-1.5.6
- old
+ new
@@ -216,10 +216,10 @@
when ScalarType, ID_TYPE, STRING_TYPE
return 'null' if value.nil?
value.to_s.inspect
when EnumType
return 'null' if value.nil?
- type.coerce_result(value)
+ type.coerce_isolated_result(value)
when InputObjectType
return 'null' if value.nil?
fields = value.to_h.map{ |field_name, field_value|
field_type = type.input_fields.fetch(field_name.to_s).type
"#{field_name}: #{print_value(field_value, field_type)}"