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 f4c06e5 commit a11c05eCopy full SHA for a11c05e
docs/middleware.jade
@@ -61,7 +61,7 @@ block content
61
:markdown
62
The `next()` call does **not** stop the rest of the code in your middleware function from executing. Use
63
[the early `return` pattern](https://www.bennadel.com/blog/2323-use-a-return-statement-when-invoking-callbacks-especially-in-a-guard-statement.htm)
64
- if you want to stop execution when you call `next()`.
+ to prevent the rest of your middleware function from running when you call `next()`.
65
:js
66
var schema = new Schema(..);
67
schema.pre('save', function(next) {
0 commit comments