lib/graphql/language/printer.rb in graphql-1.8.18 vs lib/graphql/language/printer.rb in graphql-1.9.0.pre1
- old
+ new
@@ -252,10 +252,10 @@
def print_description(node, indent: "", first_in_block: true)
return ''.dup unless node.description
description = indent != '' && !first_in_block ? "\n".dup : "".dup
- description << GraphQL::Language::BlockString.print(node.description, indent: indent)
+ description << GraphQL::Language::Comments.commentize(node.description, indent: indent)
end
def print_field_definitions(fields)
out = " {\n".dup
fields.each.with_index do |field, i|