Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-27-2019 09:01 PM
Hi,
I need to find paths between two nodes:
MATCH p=(ms:Org { id: 1 })-[:WORK_REL|:INVEST_IN|:GRADUATE_FROM*5]-(cs:Person { name: 'Martin' })
RETURN p limit 5
I got a warning:
What is the correct way to get certain relationships between two nodes without a warning?
My cypher version is 3.5.2
Thanks!
Solved! Go to Solution.
10-27-2019 11:04 PM
Hi!
You'll be delighted to know it's an easy fix, you don't need to repeat the colon, e.g.
MATCH p=(ms:Org { id: 1 })-[:WORK_REL|INVEST_IN|GRADUATE_FROM*5]-(cs:Person { name: 'Martin' })
Hope that helps
10-27-2019 11:04 PM
Hi!
You'll be delighted to know it's an easy fix, you don't need to repeat the colon, e.g.
MATCH p=(ms:Org { id: 1 })-[:WORK_REL|INVEST_IN|GRADUATE_FROM*5]-(cs:Person { name: 'Martin' })
Hope that helps
10-28-2019 02:48 AM
Thanks so much! It is about my English..
All the sessions of the conference are now available online