Created
September 25, 2021 08:07
-
-
Save rathod-sahaab/2316978fd344e9cc4326a0665b2996aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const session = await mongoose.startSession(); | |
session.startTransaction(); | |
const options = { session }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment