fix query structure

integration-tests
Josha von Gizycki 5 years ago
parent c06501d6ba
commit 57584b5e59

@ -168,11 +168,19 @@
(i)-[cb:created_by]->(:user) (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)
(i)-[lt:link_to]->(), OPTIONAL MATCH
(i)<-[lf:link_from]-(), (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]->() (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] (defn delete! [uuid]
(neo4j/exec-query! delete {:uuid uuid})) (neo4j/exec-query! delete {:uuid uuid}))

Loading…
Cancel
Save