We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently I cannot see a way to perform a delete() on a document using a transaction.
delete()
Would it be possible to add an options object to the arguments in the same way mongoose's remove method currently does?
options
async function myRemoveMethod(myQuery, mySession) { const mydoc = await myModel.findOne(myQuery).session(mySession) mydoc.delete(deletedBy, { session: mySession }, callback) }
Thanks for looking at this issue 🙏
The text was updated successfully, but these errors were encountered:
Currently I cannot see a way to perform a delete() on a document using a transaction. Would it be possible to add an options object to the arguments in the same way mongoose's remove method currently does? Proposed example usage async function myRemoveMethod(myQuery, mySession) { const mydoc = await myModel.findOne(myQuery).session(mySession) mydoc.delete(deletedBy, { session: mySession }, callback) } Thanks for looking at this issue 🙏
How about this?
await myModel.delete(myQuery).session(session) <-
Sorry, something went wrong.
No branches or pull requests
Currently I cannot see a way to perform a
delete()
on a document using a transaction.Would it be possible to add an
options
object to the arguments in the same way mongoose's remove method currently does?Proposed example usage
Thanks for looking at this issue 🙏
The text was updated successfully, but these errors were encountered: