cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

apoc.refactor.cloneNodesWithRelationships deprecated. Will it be replaced?

Hi
I'm using Neo4j 3.5.7 with Apoc 3.5.0.4. When using apoc.refactor.cloneNodesWithRelationships, Neo4j browser displays a message indicating this procedure is deprecated and not maintained anymore. Is there another already existing procedure to use for the same purpose?
Thanks
Olivier

1 ACCEPTED SOLUTION

apoc.refactor.cloneNodesWithRelationships is fully covered by apoc.refactor.cloneNodes([list of nodes], true). The true as second argument is important since it will clone relationships as well.

View solution in original post

2 REPLIES 2

apoc.refactor.cloneNodesWithRelationships is fully covered by apoc.refactor.cloneNodes([list of nodes], true). The true as second argument is important since it will clone relationships as well.

I am still getting issue after implement your solutions.
I am not getting response from neo4j browser. I have added query below.

 

MATCH (us1:User) WHERE id(us1) = 1
WITH us1
CALL apoc.refactor.cloneNodes([us1], true)
YIELD input, output as us_new
RETURN us_new

 

When I run query, it create new transaction with empty query. It's blocking my original query.

praful_mali_0-1655276163340.png