MATCH (n:Entity) where n.name IN {IDS}
WITH collect(n) as nodes
UNWIND nodes as n
UNWIND nodes as m
WITH * WHERE id(n) < id(m)
MATCH path = allShortestPaths( (n)-[*..4]-(m) )
RETURN path
where I need to pass the IDS parameters with different labels
Thanks in advanced.
MATCH (n:Entity) where n.name IN {IDS}
WITH collect(n) as nodes
MATCH (m:Entity2) where m.name IN {IDS2}
UNWIND nodes as n
WITH * WHERE id(n) < id(m)
MATCH path = allShortestPaths( (n)-[*..4]-(m) )
RETURN path
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.