|
|
@ -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}))
|
|
|
|