begin;
let t = create Vertex Ticket set ticketType = "premium"
create edge For from $t to #42:1;
create edge At from $t to #37:0;
create edge Created from #46:1 to $t;
commit;
In the above batch script while creating edge 'Created' (statement no:5) the record #46:1 is not found (deleted) so an exception is thrown. How do I rollback the transaction in this case?
P.S: I'm using orientjs library
Initialize the transaction on session, then do the batch update (without begin and commit) and either commit or rollback.