I am using the cloneNodes procedure for cloning a node with relationships:
This procedure accept properties that can be skipped while cloning. I am wondering if there is a way to skip relations.
In my schema (x:Person)-[:FRIEND]->(y:Person)-[:FRIEND]->(z:Person), I am trying to clone the node "y" with only outgoing FRIEND relations. For now, I have taken the inefficient path of cloning all relations and then deleting the incoming ones. I have a limited number of outgoing relations but incoming ones are higher by multiples, so this approach has a significant performance hit. My last resort is to copy desired properties/relations with regular cypher (without apoc).
I am using Enterprise Edition 5.1.0 with APOC v5.1.0. APOC docs for 5.1 are not published yet, so the linked one may be outdated.
PS: Sorry about the formatting. None of the markdown tags are working - I have tried manually and through the visual editor.