diff --git a/lib/graphql/language/printer.rb b/lib/graphql/language/printer.rb index 3601cb53386..ec98542a368 100644 --- a/lib/graphql/language/printer.rb +++ b/lib/graphql/language/printer.rb @@ -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