Replies: 1 comment
-
Ignore me, no sooner have I posted this do I find, right there in front of me, the all_relationships function. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I might be missing something but I can't seem to be able to retrieve all of the structuredrels when two nodes share multiple relationships of the same type.
Here's an example, I have 2 node types Activity and Context. The Activity nodes have a relationship with Context, HAPPENS_IN, and the Activity nodes have a relationship with each other, DEPENDS_ON. What I want to allow is multiple relationships with the same Activities but while related to different contexts. I have achieved this by adding a property on the DEPENDS_ON relationship called context in which I save an identifier for the context. I can save these relationships I just don't seem to be able to retrieve them.
If there are 2 contexts, context1 and context2
And 2 activities, activity1 and activity2
And activity1 and activity2 have a depends_on relationship in both context1 and context2
If I call activity1.depends_on.relationship(activity2) I will only ever retrieve one of relationships and not both.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions