Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature: Support list parameters in Node.js client library #4582

Closed
bgoosmanviz opened this issue Dec 2, 2024 · 0 comments · Fixed by #4830
Closed

Feature: Support list parameters in Node.js client library #4582

bgoosmanviz opened this issue Dec 2, 2024 · 0 comments · Fixed by #4830
Assignees
Labels
feature New features or missing components of existing features

Comments

@bgoosmanviz
Copy link

API

Node.js

Description

I'd like to write this query, but the Node.js client does not support it.

MATCH (n)-[r*1..3]-(m)
WHERE n.`label` IN $primaryKeyValues
AND m.`label` IN $primaryKeyValues
RETURN n, r, m;

Example JS code:

const params = {myValues: ["1", "2", "3"]}
const preparedStatement = await conn.prepare(query);
const queryResult = await conn.execute(preparedStatement, params);

I get this error:

Error: The value of each parameter must be a boolean, number, string, Date or BigInt

Without parameters, the query works:

match (n)-[r*1..3]-(m)
where n.label IN ["a", "b", "c"]
and m.label IN ["a", "b", "c"]
return n, r, m;
@bgoosmanviz bgoosmanviz added the feature New features or missing components of existing features label Dec 2, 2024
@mewim mewim self-assigned this Dec 3, 2024
@ray6080 ray6080 mentioned this issue Jan 16, 2025
71 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants