Module: GraphQL::Schema::Printer::TypeKindPrinters::FieldPrinter
- Includes:
- ArgsPrinter, DeprecatedPrinter, DescriptionPrinter
- Included in:
- InputObjectPrinter, InterfacePrinter, ObjectPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Instance Method Summary collapse
Methods included from DescriptionPrinter
Methods included from ArgsPrinter
#print_args, #print_input_value, #print_value
Methods included from DeprecatedPrinter
Instance Method Details
#print_fields(warden, type) ⇒ Object
245 246 247 248 249 250 251 |
# File 'lib/graphql/schema/printer.rb', line 245 def print_fields(warden, type) fields = warden.fields(type) fields.sort_by(&:name).map.with_index { |field, i| "#{print_description(field, ' ', i == 0)}"\ " #{field.name}#{print_args(warden, field, ' ')}: #{field.type}#{print_deprecated(field)}" }.join("\n") end |