I am looking for a way to remove several documents with one querry.
Something like this:
Comments.remove({user: this._id}, {multi: true}); // removes all comments
But {multi: true}
seems to only work with update
.
I am looking for a way to remove several documents with one querry.
Something like this:
Comments.remove({user: this._id}, {multi: true}); // removes all comments
But {multi: true}
seems to only work with update
.
Nevermind.
There was something else wrong with my code.
Comments.remove({user: this._id})
works just fine.