Class: GraphQL::Schema::Printer::TypeKindPrinters::UnionPrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::UnionPrinter
- Extended by:
- DescriptionPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Class Method Summary collapse
Methods included from DescriptionPrinter
Class Method Details
.print(type) ⇒ Object
218 219 220 221 |
# File 'lib/graphql/schema/printer.rb', line 218 def self.print(type) "#{print_description(type)}"\ "union #{type.name} = #{type.possible_types.map(&:to_s).join(" | ")}" end |