Class: GraphQL::Schema::Printer::TypeKindPrinters::UnionPrinter

Inherits:
Object
  • Object
show all
Extended by:
DescriptionPrinter
Defined in:
lib/graphql/schema/printer.rb

Class Method Summary collapse

Methods included from DescriptionPrinter

print_description

Class Method Details


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