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


225
226
227
228
# File 'lib/graphql/schema/printer.rb', line 225

def self.print(type)
  "#{print_description(type)}"\
  "union #{type.name} = #{type.possible_types.map(&:to_s).join(" | ")}"
end