Closed thedanielfactor closed 7 years ago
The remove function doesn't accept options. It removes all matching docs by default
The catch handles errors that occurred during the run. Attaching options to remove throws an error immediately and synchronously so the task never runs. But it should throw an error
That said, I have considered adding the multi option to the write functions because both the driver and mongoose have implemented one/many functions (updateOne, removeMany, .. etc) for all write operations. If you feel that would be a useful feature, I can tag this as an enhancement and it will be implemented in the next release. @thedanielfactor
Ah, so I need to add the options to the update. That is where I wanted it. I am not sure why I put it on the remove. I will try that.
I do like the one/many idea. That would be useful.
The following snippet of code works fine without the
{multi:true}
option but as soon as I add it something fails. It does not hit the catch and it does not return anything to the client.node 6.11.1 mongoose 4.11.6 fawn 2.0.1