diff --git a/packages/npm-mongo/package.js b/packages/npm-mongo/package.js index 90ae96463d..e7be287866 100644 --- a/packages/npm-mongo/package.js +++ b/packages/npm-mongo/package.js @@ -9,6 +9,7 @@ Package.describe({ Npm.depends({ mongodb: "5.0.0", + "mongodb-legacy": "5.0.0" }); Package.onUse(function (api) { diff --git a/packages/npm-mongo/wrapper.js b/packages/npm-mongo/wrapper.js index e341493895..f7e7c23b08 100644 --- a/packages/npm-mongo/wrapper.js +++ b/packages/npm-mongo/wrapper.js @@ -3,7 +3,7 @@ try { // Silence deprecation warnings introduced in a patch update to mongodb: // https://github.com/meteor/meteor/pull/9942#discussion_r218564879 process.noDeprecation = true; - NpmModuleMongodb = Npm.require('mongodb'); + NpmModuleMongodb = Npm.require('mongodb-legacy'); } finally { process.noDeprecation = oldNoDeprecationValue; }