Skip to content

Commit 0c79f8e

Browse files
committed
Fixes _handle_field_filter node_alias bug
1 parent 4ce3b56 commit 0c79f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neo4j_graphrag/filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def _handle_field_filter(
289289
low, high = filter_value
290290
param_name_low = param_store.add(low)
291291
param_name_high = param_store.add(high)
292-
query_snippet = f"${param_name_low} <= {DEFAULT_NODE_ALIAS}.{Operator.safe_field_cypher(field)} <= ${param_name_high}"
292+
query_snippet = f"${param_name_low} <= {node_alias}.{Operator.safe_field_cypher(field)} <= ${param_name_high}"
293293
return query_snippet
294294
# all the other operators are handled through their own classes:
295295
native_op_class = COMPARISONS_TO_NATIVE[operator]

0 commit comments

Comments
 (0)