Class: Transaction

Transaction()

A controller for a remote transaction that is constructed from g.tx(). Calling begin() on this object will produce a new GraphTraversalSource that is bound to a remote transaction over which multiple traversals may be executed in that context. Calling commit() or rollback() will then close the transaction and thus, the session. This feature only works with transaction enabled graphs.

Constructor

new Transaction()

Source:

Members

isOpen

Returns true if transaction is open.
Source:

Methods

begin() → {*}

Spawns a GraphTraversalSource that is bound to a remote session which enables a transaction.
Source:
Returns:
Type
*

close() → {Promise}

Source:
Returns:
Type
Promise

commit() → {Promise}

Source:
Returns:
Type
Promise

rollback() → {Promise}

Source:
Returns:
Type
Promise