Method: GraphQL::Schema::Argument#comment

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

#comment(text = nil) ⇒ String

Returns Comment for this argument.

Returns:

  • (String)

    Comment for this argument



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

def comment(text = nil)
  if text
    @comment = text
  else
    @comment
  end
end