cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

How to operate the relationship alone

wurangbo
Node

Hi guys,
Using SDN4, I can save nodes(using NodeEntity) and relationships( using RelationshipEntity).
When I upgraded to SDN46, I can only save nodes(using Node), How can Ioperate the relationship alone?

1 REPLY 1

gerrit_meier
Neo4j
Neo4j

Relationships / RelationshipEntities are not an entity anymore starting with SDN 6. This representation was not accurate before, because relationships cannot exist without the a start and an end node. In the context of an object mapper those start and end nodes are explicitly defined entities/nodes.
If you really want to operate on the relationships on their own, you would have to use custom Cypher queries e.g. in combination with the Neo4jClient.