Module: GraphQL::Schema::Printer::TypeKindPrinters::FieldPrinter

Includes:
ArgsPrinter, DeprecatedPrinter
Included in:
InputObjectPrinter, InterfacePrinter, ObjectPrinter
Defined in:
lib/graphql/schema/printer.rb

Instance Method Summary collapse

Methods included from ArgsPrinter

#print_args, #print_input_value, #print_value

Methods included from DeprecatedPrinter

#print_deprecated

Instance Method Details



134
135
136
137
138
# File 'lib/graphql/schema/printer.rb', line 134

def print_fields(type)
  type.all_fields.map{ |field|
    "  #{field.name}#{print_args(field)}: #{field.type}#{print_deprecated(field)}"
  }.join("\n")
end