beginTransaction(transactionConfig) {
    // this function needs to support bookmarks parameter for backwards compatibility
    // parameter was of type {string|string[]} and represented either a single or multiple bookmarks
    // that's why we need to check parameter type and decide how to interpret the value
    const arg = transactionConfig;

    let txConfig = TxConfig.empty();
    if (typeof arg === 'string' || arg instanceof String || Array.isArray(arg)) {
      // argument looks like a single or multiple bookmarks
      // bookmarks in this function are deprecated but need to be supported for backwards compatibility
      this._updateBookmark(new Bookmark(arg));
    } else if (arg) {
      // argument is probably a transaction configuration
      txConfig = new TxConfig(arg);
    }

    return this._beginTransaction(this._mode, txConfig);
  }
/**
   * Begin a new transaction in this session. A session can have at most one transaction running at a time, if you
   * want to run multiple concurrent transactions, you should use multiple concurrent sessions.
   *
   * While a transaction is open the session cannot be used to run statements outside the transaction.
   *
   * @param {TransactionConfig} [transactionConfig] - configuration for the new auto-commit transaction.
   * @returns {Transaction} - New Transaction
   */
Begin a new transaction in this session. A session can have at most one transaction running at a time, if you
want to run multiple concurrent transactions, you should use multiple concurrent sessions.

While a transaction is open the session cannot be used to run statements outside the transaction.

@param {TransactionConfig} [transactionConfig] - configuration for the new auto-commit transaction.
@returns {Transaction} - New Transaction
Begin a new transaction in this session . A session can have at most one transaction running at a time if you want to run multiple concurrent transactions you should use multiple concurrent sessions . While a transaction is open the session cannot be used to run statements outside the transaction . @param { TransactionConfig } [ transactionConfig ] - configuration for the new auto - commit transaction . @returns { Transaction } - New Transaction
beginTransaction(transactionConfig) {
    const arg = transactionConfig;
    let txConfig = TxConfig.empty();
    if (typeof arg === 'string' || arg instanceof String || Array.isArray(arg)) {
      this._updateBookmark(new Bookmark(arg));
    } else if (arg) {
      txConfig = new TxConfig(arg);
    }
    return this._beginTransaction(this._mode, txConfig);
  }
beginTransaction ( transactionConfig ) { const arg = transactionConfig ; let txConfig = TxConfig . empty ( ) ; if ( typeof arg === 'string' || arg instanceof String || Array . isArray ( arg ) ) { this . _updateBookmark ( new Bookmark ( arg ) ) ; } else if ( arg ) { txConfig = new TxConfig ( arg ) ; } return this . _beginTransaction ( this . _mode , txConfig ) ; }
Begin a new transaction in this session.
Begin a new transaction in this session .
// this function needs to support bookmarks parameter for backwards compatibility // parameter was of type {string|string[]} and represented either a single or multiple bookmarks // that's why we need to check parameter type and decide how to interpret the value // argument looks like a single or multiple bookmarks // bookmarks in this function are deprecated but need to be supported for backwards compatibility // argument is probably a transaction configuration