adam-cowley / neode

Neo4j OGM for Node.js
MIT License
394 stars 72 forks source link

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

Open JedrzejMajko opened 7 months ago

JedrzejMajko commented 7 months ago

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()