neo4j-rest-client
neo4j-rest-client copied to clipboard
Question: How do I pass parameters to a cypher query?
Couldn't find this info in the docs
Recommended way is by using the Neo4j builtin parameter passing:
q = """match n-[r:`{rel}`]-() return n, n.name, r"""
params = {
"rel": rel_type,
}
results = self.gdb.query(q, params=params,
returns=(client.Node, str, client.Relationship))
This is a bug in documentation, please document the params
argument of GraphDatabase.query()
.
You are absolutely right, @franekp. Unfortunately, I don't have the time to maintain the library anymore. Any help or PR's are welcome.