|
|
|
@ -168,11 +168,19 @@
|
|
|
|
|
(i)-[cb:created_by]->(:user)
|
|
|
|
|
OPTIONAL MATCH
|
|
|
|
|
(p:property)-[pc:of]->(i),
|
|
|
|
|
(p)-[pac:of]->(a:attribute),
|
|
|
|
|
(i)-[lt:link_to]->(),
|
|
|
|
|
(i)<-[lf:link_from]-(),
|
|
|
|
|
(p)-[pac:of]->(a:attribute)
|
|
|
|
|
OPTIONAL MATCH
|
|
|
|
|
(i)<-[lt1:link_to]-(ltn:link)-[lt2:link_from]->(),
|
|
|
|
|
(ltn)-[ltcb:created_by]->()
|
|
|
|
|
OPTIONAL MATCH
|
|
|
|
|
(i)<-[lf1:link_from]-(lfn:link)-[lf2:link_to]->(),
|
|
|
|
|
(lfn)-[lfcb:created_by]->()
|
|
|
|
|
OPTIONAL MATCH
|
|
|
|
|
(i)-[tw:tagged_with]->()
|
|
|
|
|
DELETE pac, pc, cb, ic, p, lt, lf, tw, i")
|
|
|
|
|
DELETE pac, pc, cb, ic, p,
|
|
|
|
|
lt1, lt2, ltn, ltcb,
|
|
|
|
|
lf1, lf2, lfn, lfcb,
|
|
|
|
|
tw, i")
|
|
|
|
|
(defn delete! [uuid]
|
|
|
|
|
(neo4j/exec-query! delete {:uuid uuid}))
|
|
|
|
|
|
|
|
|
|