-
Notifications
You must be signed in to change notification settings - Fork 5
RAW clause
Marijn van Wezel edited this page Dec 9, 2022
·
4 revisions
The RAW
clause is a pseudo-clause that accepts a clause name and a clause subject. It may be used for features that are not (yet) implemented by php-cypher-dsl.
Query::raw(string $clause, string $subject): Query
-
$clause
: The name of the clause, for instance "MATCH". -
$subject
: The subject (body) of the clause.
$nested = Query::variable("nested");
$statement = Query::new()
->raw("UNWIND", sprintf("%s AS x", $nested->toQuery()))
->build();
$this->assertSame("UNWIND nested AS x", $statement);