|
|
@ -36,12 +36,14 @@
|
|
|
|
CREATE (a)-[:created_by]->(u)
|
|
|
|
CREATE (a)-[:created_by]->(u)
|
|
|
|
CREATE (a)-[:of]->(s)
|
|
|
|
CREATE (a)-[:of]->(s)
|
|
|
|
SET a.type = {type}
|
|
|
|
SET a.type = {type}
|
|
|
|
SET a.name = {name}")
|
|
|
|
SET a.name = {name}
|
|
|
|
|
|
|
|
SET a.uuid = {attribute_uuid}")
|
|
|
|
|
|
|
|
|
|
|
|
(defn create-new! [name type schema-uuid user-uuid]
|
|
|
|
(defn create-new! [name type schema-uuid user-uuid]
|
|
|
|
(neo4j/exec-query!
|
|
|
|
(neo4j/exec-query!
|
|
|
|
create-new
|
|
|
|
create-new
|
|
|
|
{:user_uuid user-uuid
|
|
|
|
{:user_uuid user-uuid
|
|
|
|
:schema_uuid schema-uuid
|
|
|
|
:schema_uuid schema-uuid
|
|
|
|
|
|
|
|
:attribute_uuid (neo4j/uuid)
|
|
|
|
:type type
|
|
|
|
:type type
|
|
|
|
:name name}))
|
|
|
|
:name name}))
|
|
|
|