fix creation of multiple attrs if user has multiple connections to schema

integration-tests
Josha von Gizycki 6 years ago
parent cff4e1139b
commit 9ca73e14ec

@ -32,9 +32,8 @@
(map :a)))
(neo4j/defquery create-new
"MATCH (u:user)--(s:schema)
WHERE u.uuid = {user_uuid}
AND s.uuid = {schema_uuid}
"MATCH (s:schema {uuid:{schema_uuid}}),
(u:user {uuid:{user_uuid}})
CREATE (a:attribute)
CREATE (a)-[:created_by]->(u)
CREATE (a)-[:of]->(s)

Loading…
Cancel
Save