class GraphQL::Execution::Interpreter::ArgumentValue

A container for metadata regarding arguments present in a GraphQL query. @see Interpreter::Arguments#argument_values for a hash of these objects.

Attributes

definition[R]

@return [GraphQL::Schema::Argument] The definition instance for this argument

value[R]

@return [Object] The Ruby-ready value for this Argument

Public Class Methods

new(definition:, value:, default_used:) click to toggle source
# File lib/graphql/execution/interpreter/argument_value.rb, line 9
def initialize(definition:, value:, default_used:)
  @definition = definition
  @value = value
  @default_used = default_used
end

Public Instance Methods

default_used?() click to toggle source

@return [Boolean] ‘true` if the schema-defined `default_value:` was applied in this case. (No client-provided value was present.)

# File lib/graphql/execution/interpreter/argument_value.rb, line 22
def default_used?
  @default_used
end