I have a scenario where I need to create a linked list of nodes (thousands 
of nodes). I am using a transaction to batch my inserts into the linked 
list. However when I try to delete a new relationship that was created 
within the transaction, I am unable to do so. Here is a simplified code 
snippet,

>>> with db.transaction(using_globals=False) as tx1:
...     r10 = new_event.relationships.create("PREV_EVENT", last_event, 
tx=tx1)
...     another_event = db.nodes.create(tx=tx1)
...     r11 = another_event.relationships.create("PREV_EVENT", last_event, 
tx=tx1)
...     r12 = new_event.relationships.create("PREV_EVENT", another_event, 
tx=tx1)
...     r10.delete(tx=tx1)
... 
>>> print r10
<Neo4j Relationship: http://localhost:7474/db/data/relationship/26>

Is there a way to delete the relationship "r10" within the same transaction 
(tx1) without having to commit and open a new transaction? Appreciate your 
help.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to