File tree 1 file changed +3
-3
lines changed
src/neo4j_graphrag/experimental/components
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ async def run(self) -> ResolutionStats:
221
221
UNWIND labels(entity) AS lab
222
222
WITH lab, entity
223
223
WHERE NOT lab IN ['__Entity__', '__KGBuilder__']
224
- WITH lab, collect({{ id: id (entity), { props_map } }}) AS labelCluster
224
+ WITH lab, collect({{ id: elementId (entity), { props_map } }}) AS labelCluster
225
225
RETURN lab, labelCluster
226
226
"""
227
227
@@ -260,10 +260,10 @@ async def run(self) -> ResolutionStats:
260
260
for node_id_set in merged_sets :
261
261
if len (node_id_set ) > 1 :
262
262
merge_query = (
263
- "MATCH (n) WHERE id (n) IN $ids "
263
+ "MATCH (n) WHERE elementId (n) IN $ids "
264
264
"WITH collect(n) AS nodes "
265
265
"CALL apoc.refactor.mergeNodes(nodes, {properties: 'discard', mergeRels: true}) "
266
- "YIELD node RETURN id (node)"
266
+ "YIELD node RETURN elementId (node)"
267
267
)
268
268
result , _ , _ = self .driver .execute_query (
269
269
merge_query ,
You can’t perform that action at this time.
0 commit comments