Skip to content
New issue

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

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

Already on GitHub? # to your account

How to abort transection in mongoose. #7113

Closed
shivgarg5676 opened this issue Oct 9, 2018 · 2 comments
Closed

How to abort transection in mongoose. #7113

shivgarg5676 opened this issue Oct 9, 2018 · 2 comments
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@shivgarg5676
Copy link

shivgarg5676 commented Oct 9, 2018

F.Y.I- I am using mongoose 5.3.2 with transaction support and mongo replica set on version 4.0.2.

I just want to know how to abort the transaction in mongoose. I could not find a method in mongoose official guide.
I tried session.abortTransection(). but threw an error saying
session.abortTransection is not a function

What is a valid mechanism to abort transaction using mongoose?

@ghost
Copy link

ghost commented Oct 11, 2018

@shivgarg5676 try session.abortTransaction() instead. The mongoose transaction guide would be improved by including an example of aborting a transaction. We'll add one.

@ghost ghost added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Oct 11, 2018
@shivgarg5676
Copy link
Author

sorry my bad

@vkarpov15 vkarpov15 modified the milestones: 5.3.5, 5.3.6 Oct 15, 2018
@vkarpov15 vkarpov15 modified the milestones: 5.3.7, 5.3.8, 5.3.9 Oct 26, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

No branches or pull requests

2 participants