RedisGraph / redisgraph-py

RedisGraph python client
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

support dict as a parameter value #132

Closed swilly22 closed 2 years ago

swilly22 commented 3 years ago
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 commented 3 years ago

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

AvitalFineRedis commented 3 years ago

CYPHER props={v2:10} ?