Skip to content

Commit cd27513

Browse files
committed
Bug fix
1 parent 240d946 commit cd27513

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/neo4j_graphrag/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,9 @@ def enhance_properties(
727727
excluded = EXCLUDED_RELS if is_relationship else EXCLUDED_LABELS
728728
if name in excluded:
729729
return
730-
props = structured_schema["node_props"].get(name)
730+
props = structured_schema["rel_props" if is_relationship else "node_props"].get(
731+
name
732+
)
731733
if not props: # The node has no properties
732734
return
733735
enhanced_cypher = get_enhanced_schema_cypher(

0 commit comments

Comments
 (0)