/** * @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(); } }
/** * @return \Witooh\Neo4j\Cypher\Query */ public function query() { return $this->cypher->query(); }