1 package DX::Update::SetValue;
3 use DX::Utils qw(VALUE_SET);
6 with 'DX::Role::Update';
8 has new_value => (is => 'ro', required => 1, isa => Value);
11 my ($self, $scope) = @_;
12 my @path = @{$self->target_path};
13 my $new_value = $self->new_value;
15 $self->_with_value_at_path($scope, sub { $new_value }, @path),
16 [ VALUE_SET ,=> @path ],