Closed edgareler closed 4 years ago
Is there a benefit to using exec?
According to Mongoose docs, that gives you better stack traces.
Sounds good, and thanks for the contribution! Would you mind adding a test to cover the new logic?
Hi @lorensr, I've just included two new ID matchers to the existing tests, which basically covers the Model vs Collection issue.
Thanks again! Published in 0.2.7
Similar to #28, but uses
Model.find().exec()
as promise, and checks if thecollection
parameter is Model.