fix deletion of properties

integration-tests
Josha von Gizycki 6 years ago
parent 59725ceea7
commit 8802591497

@ -117,11 +117,12 @@
(neo4j/defquery delete (neo4j/defquery delete
"MATCH (i:instance {uuid:{uuid}}), "MATCH (i:instance {uuid:{uuid}}),
(i)-[ic:of]->(s:schema) (i)-[ic:of]->(s:schema),
(i)-[cb:created_by]->(:user)
OPTIONAL MATCH OPTIONAL MATCH
(p:property)-[pc:of]->(i), (p:property)-[pc:of]->(i),
(p)-[pac:of]->(a:attribute) (p)-[pac:of]->(a:attribute)
DELETE pac, pc, ic, p, i") DELETE pac, pc, cb, ic, p, i")
(defn delete! [uuid] (defn delete! [uuid]
(neo4j/exec-query! delete {:uuid uuid})) (neo4j/exec-query! delete {:uuid uuid}))

Loading…
Cancel
Save