Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Jan 30, 2025
1 parent 240d946 commit cd27513
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/neo4j_graphrag/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ def enhance_properties(
excluded = EXCLUDED_RELS if is_relationship else EXCLUDED_LABELS
if name in excluded:
return
props = structured_schema["node_props"].get(name)
props = structured_schema["rel_props" if is_relationship else "node_props"].get(
name
)
if not props: # The node has no properties
return
enhanced_cypher = get_enhanced_schema_cypher(
Expand Down

0 comments on commit cd27513

Please sign in to comment.