Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
bgoosmanviz opened this issue Dec 2, 2024 · 0 comments
Open

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

bgoosmanviz opened this issue Dec 2, 2024 · 0 comments
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

No branches or pull requests

2 participants