neode icon indicating copy to clipboard operation
neode copied to clipboard

Wrong database used in transaction method (affects transactions and batch methods)

Open JedrzejMajko opened this issue 11 months ago • 0 comments

All transactions & batch operations are being done on default database. Selecting other db will affect cypherRead/Write, but not transaction nor batch() method.

Method transaction() contains following code: var session = this.driver.session(database); This is an invalid argument.

It should be: var session = this.driver.session({ database: database, defaultAccessMode: mode });

You have example in method above transaction: writeSession()

JedrzejMajko avatar Feb 28 '24 21:02 JedrzejMajko