Skip to content

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

Parameters

  • $clause : The name of the clause, for instance "MATCH".
  • $subject : The subject (body) of the clause.

Examples

$nested = Query::variable("nested");

$statement = Query::new()
	->raw("UNWIND", sprintf("%s AS x", $nested->toQuery()))
	->build();

$this->assertSame("UNWIND nested AS x", $statement);
Clone this wiki locally