Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-17-2019 02:39 AM
Hello everybody!
I've this cypher query and I want to create relationship between 2 nodes dynamically:
UNWIND $list as l
MATCH (node:Category { code: l.code }), (target:Category { code: l.codeTarget })
MERGE (node)-[:l.predicate]->(target)
Is it possible to do something like this?
Thank's you !
Solved! Go to Solution.
09-17-2019 03:57 AM
check out apoc.create.relationship
from apoc library. In plain cypher you cannot have dynamic relationship types.
09-17-2019 03:57 AM
check out apoc.create.relationship
from apoc library. In plain cypher you cannot have dynamic relationship types.
09-17-2019 05:12 AM
APOC of course! Thank you very much!
All the sessions of the conference are now available online