Class: GraphQL::Schema::Printer::TypeKindPrinters::ObjectPrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::ObjectPrinter
- Extended by:
- FieldPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Class Method Summary collapse
Methods included from FieldPrinter
print_args, print_fields, print_input_value, print_value
Class Method Details
.print(type) ⇒ Object
100 101 102 103 |
# File 'lib/graphql/schema/printer.rb', line 100 def self.print(type) implementations = " implements #{type.interfaces.map(&:to_s).join(", ")}" unless type.interfaces.empty? "type #{type.name}#{implementations} {\n#{print_fields(type)}\n}" end |