Replies: 1 comment
-
Hey there! You may find more info here if you click on the That being said, the comments could definitely be improved in the code. Let me know if this answers your question! |
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
-
Hello,
I'm trying to figure out proper usage of the CreateRelationshipProperties and RelationshipProperties which are type attributes on ModelRelatedNodesI.
So far all my attempts to figure it out have failed, and the best theoretical explanation is contradicting with the closest practical conclusions. By theory and intuition (including reading of the comments) it seems that CreateRelationshipProperties can define one set of attributes while RelationshipProperties can define another set of attributes. That eventually could allow different attributes for creation process than the actual attributes of the relationship. I can assume that creation of a relationship needs context attributes which will not be stored as properties, or the relationship itself can have calculated properties that are not passed as arguments during the creation. Either way, they could be different, and this could be designed to solve this problem.
On the other hand, the actual code doesn't seem to solve this problem. Furthermore, both sets of properties meet at the same place and start to intervene with each other at
RelationshipsI
.Here, one type is used as a key, the other one is used as a property, and in real life it causes very strange behavior when playing with them.
I am not pretending that I totally understand the whole logic, therefore I don't dare to claim it's an issue, but it seems like it could be.
Any explanation of the above would be highly appreciated, of if that's an issue, please take it for a record as such.
Beta Was this translation helpful? Give feedback.
All reactions