From 75f781ac544f2dc0d8e567f30410edd453fce2a9 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 20 Feb 2023 12:45:26 -0500 Subject: [PATCH] docs(middleware): list `validate` as a potential query middleware Re: #12680 --- docs/middleware.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/middleware.md b/docs/middleware.md index 44b7eee4f1d..c385524c34b 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -55,6 +55,7 @@ In query middleware functions, `this` refers to the query. * [update](api/query.html#query_Query-update) * [updateOne](api/query.html#query_Query-updateOne) * [updateMany](api/query.html#query_Query-updateMany) +* [validate](validation.html#update-validators) Aggregate middleware is for `MyModel.aggregate()`. Aggregate middleware executes when you call `exec()` on an aggregate object.