|
|
@ -52,7 +52,8 @@
|
|
|
|
:attr_uuid (:uuid attribute)
|
|
|
|
:attr_uuid (:uuid attribute)
|
|
|
|
:prop_uuid (neo4j/uuid)
|
|
|
|
:prop_uuid (neo4j/uuid)
|
|
|
|
:value value
|
|
|
|
:value value
|
|
|
|
:created_at now}])]
|
|
|
|
:created_at now
|
|
|
|
|
|
|
|
:updated_at now}])]
|
|
|
|
(apply neo4j/exec-queries!
|
|
|
|
(apply neo4j/exec-queries!
|
|
|
|
(concat [instance-tuple]
|
|
|
|
(concat [instance-tuple]
|
|
|
|
prop-tuples))))
|
|
|
|
prop-tuples))))
|
|
|
@ -130,8 +131,7 @@
|
|
|
|
(neo4j/defquery create-link
|
|
|
|
(neo4j/defquery create-link
|
|
|
|
"MATCH (i:instance {uuid:{from}}),
|
|
|
|
"MATCH (i:instance {uuid:{from}}),
|
|
|
|
(u:user {uuid:{by}}),
|
|
|
|
(u:user {uuid:{by}}),
|
|
|
|
(t:instance)
|
|
|
|
(t:instance {uuid:{target}})
|
|
|
|
WHERE t.uuid = {target}
|
|
|
|
|
|
|
|
CREATE (l:link {uuid:{uuid}})-[:created_by]->(u)
|
|
|
|
CREATE (l:link {uuid:{uuid}})-[:created_by]->(u)
|
|
|
|
SET l.created_at = {created_at},
|
|
|
|
SET l.created_at = {created_at},
|
|
|
|
l.name = {name}
|
|
|
|
l.name = {name}
|
|
|
|