Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-22-2020 05:22 AM
Hello everyone, I am working with neo4j, I have comments that are related to a post. how to have each comments and all its child comments. can someone help me please
09-22-2020 05:45 AM
Hi! You're looking for Variable-length pattern matching: https://neo4j.com/docs/cypher-manual/current/syntax/patterns/#cypher-pattern-varlength
Example: p = MATCH (:Comment)<-[:IS_CHILD*]-(c)
All the sessions of the conference are now available online