Skip to content

support dict as a parameter value #132

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

Closed
swilly22 opened this issue Jun 5, 2021 · 2 comments · Fixed by #142
Closed

support dict as a parameter value #132

swilly22 opened this issue Jun 5, 2021 · 2 comments · Fixed by #142
Assignees

Comments

@swilly22
Copy link
Contributor

swilly22 commented Jun 5, 2021

params = {'props': {'v2': 10}}
result = graph.query("MATCH (n) SET n = $props RETURN n", params)

Need to remove ' from dict keys within build_params_header as Cypher doesn't expects dict keys to be wrapped in quotation marks.

@AvitalFineRedis
Copy link
Contributor

@swilly22 Can you please write how the params in the example here look in the query?

@AvitalFineRedis
Copy link
Contributor

CYPHER props={v2:10} ?

@AvitalFineRedis AvitalFineRedis linked a pull request Aug 23, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants