CALL {
  MATCH (p:Person)-[:FRIEND\_OF]->(other:Person) RETURN p, other
  UNION
  MATCH (p:Child)-[:CHILD\_OF]->(other:Parent) RETURN p, other
}

This calls a subquery with two union parts. The result of the subquery can afterwards be post-processed.

Comments