Skip to content

Commit ec6d6d5

Browse files
committed
Fix path hydration bug
1 parent dd091ff commit ec6d6d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neo4j/v1/typesystem.py

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def hydrate(cls, nodes, rels, sequence):
178178
else:
179179
entities.append(rels[-rel_index - 1].bind(next_node.identity, last_node.identity))
180180
entities.append(next_node)
181+
last_node = next_node
181182
return cls(*entities)
182183

183184
def __init__(self, start_node, *rels_and_nodes):

0 commit comments

Comments
 (0)