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))) (map :a)))
(neo4j/defquery create-new (neo4j/defquery create-new
"MATCH (u:user)--(s:schema) "MATCH (s:schema {uuid:{schema_uuid}}),
WHERE u.uuid = {user_uuid} (u:user {uuid:{user_uuid}})
AND s.uuid = {schema_uuid}
CREATE (a:attribute) CREATE (a:attribute)
CREATE (a)-[:created_by]->(u) CREATE (a)-[:created_by]->(u)
CREATE (a)-[:of]->(s) CREATE (a)-[:of]->(s)

Loading…
Cancel
Save