In my case I have originally some
class Entity {
@Relationship(type = "PARENT", direction = Relationship.Direction.INCOMING)
List<Entity> children;
@Relationship(type = "PARENT", direction = Relationship.Direction.OUTGOING)
Entity parent;
}
where I now want to limit this in both directions to 1-2 levels. So I want my projected entity to contain entities with all properties but no relationships.
So as I have to know the direction, I think there is no way to do this with the interface?