From 73950d0e438a931ea5d1a86c76e1e1933259e0ef Mon Sep 17 00:00:00 2001 From: Simon Tretter Date: Mon, 9 Oct 2023 09:59:22 +0200 Subject: [PATCH] fix: raw result deprecation message according to https://mongoosejs.com/docs/deprecations.html#rawresult it mus tbe true, not false. it would also make more sense tbh --- lib/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/query.js b/lib/query.js index 7a3d00fe699..30f22255d95 100644 --- a/lib/query.js +++ b/lib/query.js @@ -1680,7 +1680,7 @@ Query.prototype.setOptions = function(options, overwrite) { const printRawResultDeprecationWarning = util.deprecate( function printRawResultDeprecationWarning() {}, - 'The `rawResult` option for Mongoose queries is deprecated. Use `includeResultMetadata: false` as a replacement for `rawResult: true`.' + 'The `rawResult` option for Mongoose queries is deprecated. Use `includeResultMetadata: true` as a replacement for `rawResult: true`.' ); /*!