There was an error while loading. Please reload this page.
The SET clause is used to update labels on nodes and properties on nodes and relationships. It accepts a number of expressions to set.
SET
Query::set(Label|PropertyReplacement|(Label|PropertyReplacement)[] $expressions): Query
$expressions
add(Label|PropertyReplacement ...$expressions): self
$n = node()->withProperties(['name' => 'Andy']); $query = query() ->match($n) ->set($n->property('surname')->replaceWith('Taylor')) ->returning([$n->property('name'), $n->property('surname')]) ->build(); $this->assertStringMatchesFormat("MATCH (%s {name: 'Andy'}) SET %s.surname = 'Taylor' RETURN %s.name, %s.surname", $query);