Thanks for all the work on this project!
I tried to integrate RedisGraph into an existing project(prov-db-connector) and got an unexpected error:
The following command with params will cause an exception because the param name contains and :
Example to reproduce
params = {'prefix:purpose': "pleasure"}
query = """MATCH (p:person)-[v:visited {purpose:$purpose}]->(c:country)
RETURN p.name, p.age, v.purpose, c.name"""
result = graph.query(query, params)
The code above produces the following query and exception
Exception
social CYPHER prefix:purpose="pleasure" MATCH (p:person)-[v:visited {purpose:$purpose}]->(c:country)
RETURN p.name, p.age, v.purpose, c.name
redis.exceptions.ResponseError: errMsg: Invalid input ':': expected '=' line: 1, column: 14, offset: 13 errCtx: CYPHER prefix:purpose="pleasure" MATCH (p:person)-[v:visited {purpose:$purpos... errCtxOffset: 13
Expected behavior
The example above should be saved successfully to Redis
Potential solution
The library should escape/encode params and queries.
What do you think about this issue? If you need any help to reproduce or investigate this issue, please let me know!
Thanks for all the work on this project!
I tried to integrate RedisGraph into an existing project(prov-db-connector) and got an unexpected error:
The following command with params will cause an exception because the param name contains and
:Example to reproduce
The code above produces the following query and exception
Exception
Expected behavior
The example above should be saved successfully to Redis
Potential solution
The library should escape/encode params and queries.
What do you think about this issue? If you need any help to reproduce or investigate this issue, please let me know!