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.

Neo4jTemplate save after loading subgraph

paulB
Node Clone

Hello,

Using a Neo4jTemplate, I have this use case where I:

1) Use Neo4jTemplate#findAll(Statement, NodeType.class) to fetch a sub graph

2) Create a createdNode (RelatedNode class) connected to several nodes of the sub graph

3) Use Neo4jTemplate#saveAs(createdNode, RelatedNode.class) to save my work

It results in separating the subgraph of the rest of the graph (lose of many relationship from sub graph to the rest of the graph).

Can createdNode be save without this side effect?

I'm using org.springframework.data.neo4j.core.Neo4jTemplate (6.3.2)

0 REPLIES 0