Method: GraphQL::Introspection::TypeType#input_fields

Defined in:
lib/graphql/introspection/type_type.rb

#input_fields(include_deprecated:) ⇒ Object



73
74
75
76
77
78
79
80
81
# File 'lib/graphql/introspection/type_type.rb', line 73

def input_fields(include_deprecated:)
  if @object.kind.input_object?
    args = @context.types.arguments(@object)
    args = args.reject(&:deprecation_reason) unless include_deprecated
    args
  else
    nil
  end
end