I'm totally new to Neo4j
and I'm testing it in these days.
One issue I have with it is how to correctly implement a relationship which involves 3 different nodes using Spring Data
. Suppose, for example, that I have 3 @NodeEntity
s: User
, Tag
and TaggableObject
.
As you can argue, a User
can add a Tag
to a TaggableObject
; I model this operation with a @RelationshipEntity TaggingOperation
.
However, I can't find a simple way to glue the 3 entities inside the relationship. I mean, the obvious choice is to set @StartNode User tagger
and @EndNode TaggedObject taggedObject
; but how can I also add the Tag
to the relationship?