Method: GraphQL::Schema::Argument#deprecation_reason

Defined in:
lib/graphql/schema/argument.rb

#deprecation_reason(text = nil) ⇒ String

Returns Deprecation reason for this argument.

Returns:

  • (String)

    Deprecation reason for this argument



143
144
145
146
147
148
149
# File 'lib/graphql/schema/argument.rb', line 143

def deprecation_reason(text = nil)
  if text
    self.deprecation_reason = text
  else
    super()
  end
end