Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-06-2021 04:25 AM
Hi,
I want to do the following
Match n:Node WHERE n.someprop = somevalue
Match m:ANode WHERE ID(m)=21
Create relationship for all n nodes with m
How can I achieve it with a single cypher? Is FOREACH is an effective way to do it? Or someother way is there to do it.
Thanks,
Skanda
Solved! Go to Solution.
09-06-2021 04:52 AM
Hi,
You can try
Match m:ANode WHERE ID(m)=21
with m
Match n:Node WHERE n.someprop = somevalue
CREATE (m)-[:REL]->(n)
Bennu
09-06-2021 04:52 AM
Hi,
You can try
Match m:ANode WHERE ID(m)=21
with m
Match n:Node WHERE n.someprop = somevalue
CREATE (m)-[:REL]->(n)
Bennu
09-06-2021 04:54 AM
Thanks Bennu, Just now myself found the same!
All the sessions of the conference are now available online