Пример #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();
     }
 }
Пример #2
0
 /**
  * @param array $queries
  * @return array
  */
 public function beginAndCommit(array $queries)
 {
     return $this->cypher->beginAndCommit($queries);
 }