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



150
151
152
153
154
155
156
# File 'lib/graphql/schema/argument.rb', line 150

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