class GraphQL::Query::SerialExecution::ValueResolution::NonNullResolution

def result

Get the "wrapped" type and resolve the value according to that type
def result
  if value.nil? || value.is_a?(GraphQL::ExecutionError)
    raise GraphQL::InvalidNullError.new(irep_node.definition_name, value)
  else
    wrapped_type = field_type.of_type
    strategy_class = get_strategy_for_kind(wrapped_type.kind)
    inner_strategy = strategy_class.new(value, wrapped_type, target, parent_type, irep_node, execution_context)
    inner_strategy.result
  end
end