lib/graphql/schema/printer.rb in graphql-0.19.1 vs lib/graphql/schema/printer.rb in graphql-0.19.2
- old
+ new
@@ -109,10 +109,10 @@
when BOOLEAN_TYPE
(!!value).inspect
when ScalarType, ID_TYPE, STRING_TYPE
value.to_s.inspect
when EnumType
- value.to_s
+ type.coerce_result(value)
when InputObjectType
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)}"
}.join(", ")