-
Notifications
You must be signed in to change notification settings - Fork 85
Deprecated Mongo connection options in npm page #340
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@ericsj I have the same problem. Apparently there is no definition in the interface: MongoClientOptions to useNewUrlParser and useUnifiedTopology options |
Do you have some workaround for that problem? |
I have this same problem can someone resolve this? |
I can resolve with that:
|
The following code in the project npm page has deprecated connect() options
beforeAll(async () => { connection = await MongoClient.connect(global.__MONGO_URI__, { useNewUrlParser: true, useUnifiedTopology: true, });
Both connection options used are not present on the reference page
The text was updated successfully, but these errors were encountered: