Model.deleteMany does not respect the writeConcern options #867
Labels
bug
Something isn't working
not a typegoose issue
This is not a typegoose issue / This pr addresses something that shouldnt be in typegoose
Versions
What is the Problem?
Model.deleteMany does not respect the writeConcern options
Code Example
I have a LogModel defined using
the write concern here is to speedup the log write requests.
Now I would like to remove the logs inside a transaction with other models, and the error is:
Cannot have explicit session with unacknowledged writes
I tried supply explicit write concern into the deleteMany query to override the setting in model, but same error occurs.
Do you know why it happens?
no
The text was updated successfully, but these errors were encountered: