Skip to content

Commit

Permalink
Merge pull request #13954 from simllll/patch-6
Browse files Browse the repository at this point in the history
fix: raw result deprecation message
  • Loading branch information
vkarpov15 committed Oct 9, 2023
2 parents 4e10638 + 73950d0 commit d96f505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`.'
);

/*!
Expand Down

0 comments on commit d96f505

Please sign in to comment.