migrate-mongo
migrate-mongo copied to clipboard
docs: added '{session}' options to Transactions API samples
Added missing {session}
options to Transactions API samples: each operation in the function passed to session.withTransaction
must be associated with the session.
Resolves #382
Checklist
- [x] README.md is updated
i vote for merging this PR to have actual tested documentation
Makes a lot of sense to update those docs
I've included this PR in https://github.com/theogravity/migrate-mongo-alt
this absolutely needs to be merged, we used the sample from the documentation for months thinking that it was sufficient to have the migrations be rolled back in case of error, which it is not.
Merged and landed in v11.0.0. Sorry for the delay. Thank you for your contribution.