Support delete_many
Closed this issue · 4 comments
ndelvalle commented
First of all, thanks for the lib, I am testing it in a new project and so far I like it!
I came across the use case of deleting many attributes, are there any plans to support delete_many functionality or should I just use the native drive for this case?
thedodd commented
Hey @ndelvalle, glad that you like it so far! Looks like that is actually just missing functionality. We should definitely have that functionality.
You can currently do this by simple calling Model::collection(&db).delete_many(..).await
. When we implement this functionality in Wither, it will do the exact same thing.
thedodd commented
If you have time to open a PR, it should be quite simple. Feel free to do so.