class GraphQL::Query::VariableValidationError

def initialize(variable_ast, type, value, validation_result)

def initialize(variable_ast, type, value, validation_result)
  @value = value
  @validation_result = validation_result
  msg = "Variable #{variable_ast.name} of type #{type} was provided invalid value"
  super(msg)
  self.ast_node = variable_ast
end

def to_h

def to_h
  super.merge({ "value" => value, "problems" => validation_result.problems })
end