Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-19-2022 02:54 PM
Hey.
I'm trying update all current and future properties of the relationship [:HAS_FORMER_NAME].
The properties of the relationship are two dates:
The current graph structure looks as follows, where the Person and OldName nodes each contain the current and old name respectively.
MATCH (:Person)-[p:HAS_FORMER_NAME]->(:OldName)
What im trying to do is, compare each relationship from-date and set the to-date of each relationship to the from-date of the next/newer relationship.
If there are no new/newer changes, then the to-date should be '-'.
Can anyone help achieve this outcome?
All the sessions of the conference are now available online