cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.