Class: GraphQL::Schema::Printer::TypeKindPrinters::UnionPrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::UnionPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Class Method Summary collapse
Class Method Details
.print(type) ⇒ Object
134 135 136 |
# File 'lib/graphql/schema/printer.rb', line 134 def self.print(type) "union #{type.name} = #{type.possible_types.map(&:to_s).join(" | ")}" end |