class GraphQL::Language::Nodes::Argument

A key-value pair for a field's inputs

Attributes

name[RW]
value[RW]

Public Instance Methods

children() click to toggle source
# File lib/graphql/language/nodes.rb, line 112
def children
  [value].flatten.select { |v| v.is_a?(AbstractNode) }
end
initialize_node(name: nil, value: nil) click to toggle source

@!attribute value

@return [String, Float, Integer, Boolean, Array, InputObject] The value passed for this key
# File lib/graphql/language/nodes.rb, line 103
def initialize_node(name: nil, value: nil)
  @name = name
  @value = value
end
scalars() click to toggle source
# File lib/graphql/language/nodes.rb, line 108
def scalars
  [name, value]
end