parent
eaeca7f8c3
commit
58edd77428
@ -0,0 +1,15 @@
|
|||||||
|
(ns wanijo.visualisation.domain
|
||||||
|
(:require [wanijo.framework.neo4j :as neo4j]))
|
||||||
|
|
||||||
|
(neo4j/defquery all-instance-connections
|
||||||
|
"MATCH
|
||||||
|
(source:instance)-[:of]->(schema:schema)
|
||||||
|
OPTIONAL MATCH
|
||||||
|
(source)<-[:link_from]-(link:link)-[:link_to]->(target:instance),
|
||||||
|
(target)-[:of]->(target_schema:schema)
|
||||||
|
WHERE
|
||||||
|
target IS NULL OR target <> source
|
||||||
|
RETURN source, link, target, schema, target_schema")
|
||||||
|
|
||||||
|
(defn all-instance-connections! []
|
||||||
|
(neo4j/exec-query! all-instance-connections {}))
|
Loading…
Reference in new issue