Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JedrzejMajko opened this issue Feb 28, 2024 · 0 comments

Comments

@JedrzejMajko
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant