I have code that uses py2neo to create and insert a node into the node4j database.
However, I need to do this in a transaction.
graph.create(node) creates and commits the node.
I get a transaction by tx = graph.cypher.begin()
The documentation says Transaction accepts a statement. I don't have a statement, I have a Node instance.
Is there any way to convert a Node instance to a statement, or do I need to retool my code to create nodes using Cypher statements?
Or, does py2neo implement transactions some other way?