You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, this framework supports only creation of new nodes, but if we want to update some properties, manual requests are required.
As far as I understand, there are 2 approaches here, one through MERGE (to ensure that record exists and update) or MATCH (to update record only if it exists) and it's recommend to use external ids.
The proposal is to add to methods to graph: def update(node: Node) -> MATCH+ SET
and
def ensure(node: Node) -> MERGE + SET
To do match or merge we need to have ID, which in real life is usually is some UUID from some external system. To solve this we can extend Node.__init__ to allow to pass "id_key" or "id" which will be the name of the property that is use as external id
Is community interested in this kind of change?
The text was updated successfully, but these errors were encountered:
Currently, this framework supports only creation of new nodes, but if we want to update some properties, manual requests are required.
As far as I understand, there are 2 approaches here, one through MERGE (to ensure that record exists and update) or MATCH (to update record only if it exists) and it's recommend to use external ids.
The proposal is to add to methods to graph:
def update(node: Node)
-> MATCH+ SETand
def ensure(node: Node)
-> MERGE + SETTo do match or merge we need to have ID, which in real life is usually is some UUID from some external system. To solve this we can extend
Node.__init__
to allow to pass "id_key" or "id" which will be the name of the property that is use as external idIs community interested in this kind of change?
The text was updated successfully, but these errors were encountered: