-
Notifications
You must be signed in to change notification settings - Fork 5
DELETE clause
Marijn van Wezel edited this page Oct 13, 2021
·
7 revisions
The DELETE
clause accepts a list of nodes to be deleted
$tom = Query::node("Person")->named("tom");
$statement = Query::new()
->delete($tom)
->build();
$this->assertSame("DELETE (tom:Person)", $statement);
$tom = Query::node("Person")->named("tom");
$statement = Query::new()
->detachDelete($tom)
->build();
$this->assertSame("DETACH DELETE (tom:Person)", $statement);