Beispiel #1
0
 /**
  * @param $label
  * @param $property
  * @param bool $unique
  */
 public function drop($label, $property, $unique = false)
 {
     if ($unique) {
         $this->cypher->query()->raw("DROP CONSTRAINT ON (a:{$label}) ASSERT a.{$property} IS UNIQUE")->run();
     } else {
         $this->cypher->query()->raw("DROP INDEX ON :{$label}({$property})")->run();
     }
 }
Beispiel #2
0
 /**
  * @return \Witooh\Neo4j\Cypher\Query
  */
 public function query()
 {
     return $this->cypher->query();
 }