Skip to content

Commit a0594c1

Browse files
committed
Pass correct parameter in gds.util.asNodes remote impl
1 parent 7376bd0 commit a0594c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphdatascience/tests/unit/test_util_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_remote_as_nodes(runner: CollectingQueryRunner, aura_gds: AuraGraphDataS
3838
aura_gds.util.asNodes([1, 2, 3])
3939

4040
assert runner.last_query() == "MATCH (n) WHERE id(n) IN $nodeIds RETURN collect(n)"
41-
assert runner.last_params() == {"nodeId": [1, 2, 3]}
41+
assert runner.last_params() == {"nodeIds": [1, 2, 3]}
4242

4343

4444
def test_node_property(runner: CollectingQueryRunner, gds: GraphDataScience) -> None:

graphdatascience/utils/util_remote_proc_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def asNodes(self, node_ids: List[int]) -> List[Any]:
3939
4040
"""
4141
query = "MATCH (n) WHERE id(n) IN $nodeIds RETURN collect(n)"
42-
params = {"nodeId": node_ids}
42+
params = {"nodeIds": node_ids}
4343

4444
return self._query_runner.run_cypher(query=query, params=params).squeeze() # type: ignore
4545

0 commit comments

Comments
 (0)