Skip to content

Commit

Permalink
Push a little fix to .print
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Dec 8, 2017
1 parent 7f69d87 commit 90bbb3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/graphql/internal_representation/print.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def print_node(node, indent: 0)
query_str << "#{padding}#{node.name}: #{node.definition_name}"
end

args = node.ast_nodes.map { |n| n.arguments.map(&:to_query_string).join(",") }.uniq
args = node.ast_nodes.map { |n| n.arguments.map(&:to_query_string).join(",") }
.reject { |a| a == "" }
.uniq
query_str << args.map { |a| "(#{a})"}.join("|")
end

Expand Down

0 comments on commit 90bbb3b

Please sign in to comment.