/** * @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(); } }
/** * @param array $queries * @return array */ public function beginAndCommit(array $queries) { return $this->cypher->beginAndCommit($queries); }