This repository has been archived by the owner on May 23, 2019. It is now read-only.
v1.5.0
Allow parameters to be passed as lists.
This change applies to:
- cypher
- cypherToList
- createNode
- getOrCreateNode
- updateProp
- deleteProp
- appendCypher
In general, any function that has the dots argument (...) for accepting an arbitrary amount of key=value pairs for node / relationship properties or parameters can now accept a single list. Previously, you had to do it likes this:
n = createNode(graph, "Person", name="Nicole", age=24)
Now you can do it like this:
props = list(name="Nicole", age=24)
n = createNode(graph, "Person", props)
This is nice if you have a list of things that you want to set as properties or use as parameters.
The following were not updated as they've been deprecated in favor of cypherToList
:
- getNodes
- getSingleNode
- getRels
- getSingleRel
- getPaths
- getSinglePath