Skip to content

Commit

Permalink
Fix printing object type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Feb 1, 2018
1 parent c43198d commit c4f178c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/language/printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def print_scalar_type_definition(scalar_type)
def print_object_type_definition(object_type)
out = print_description(object_type)
out << "type #{object_type.name}"
out << print_directives(object_type.directives)
out << " implements " << object_type.interfaces.map(&:name).join(", ") unless object_type.interfaces.empty?
out << print_directives(object_type.directives)
out << print_field_definitions(object_type.fields)
end

Expand Down

0 comments on commit c4f178c

Please sign in to comment.