Method: GraphQL::Language::SanitizedPrinter#print_field

Defined in:
lib/graphql/language/sanitized_printer.rb


115
116
117
118
119
120
121
# File 'lib/graphql/language/sanitized_printer.rb', line 115

def print_field(field, indent: "")
  @current_field = query.types.field(@current_type, field.name)
  old_type = @current_type
  @current_type = @current_field.type.unwrap
  super
  @current_type = old_type
end