@ -179,3 +179,12 @@
(defn delete-link! [uuid]
(neo4j/exec-query! delete-link
{:uuid uuid}))
(defn full-instance-by-uuid! [uuid]
(assoc (find-by-uuid! uuid)
:properties
(find-properties! uuid)
:links-out
(outgoing-links! uuid)
:links-in
(incoming-links! uuid)))
@ -40,13 +40,7 @@
(domain-attr/find-by-instance! uuid)))
(defn instance! [uuid]
(assoc (domain/find-by-uuid! uuid)
(domain/find-properties! uuid)
(domain/outgoing-links! uuid)
(domain/incoming-links! uuid)))
(domain/full-instance-by-uuid! uuid))
(defn show! [uuid req]
(view/show! (instance! uuid) req))