We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2caa0f commit cf768dcCopy full SHA for cf768dc
lib/helpers/model/applyStaticHooks.js
@@ -15,7 +15,7 @@ module.exports = function applyStaticHooks(model, hooks, statics) {
15
};
16
17
hooks = hooks.filter(hook => {
18
- // If the custom static overwrites an existing middleware, don't apply
+ // If the custom static overwrites an existing query/aggregate middleware, don't apply
19
// middleware to it by default. This avoids a potential backwards breaking
20
// change with plugins like `mongoose-delete` that use statics to overwrite
21
// built-in Mongoose functions.
0 commit comments