Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to update the documentation to reflect current 'mongodb' library #419

Open
robertoshimizu opened this issue Mar 12, 2023 · 2 comments

Comments

@robertoshimizu
Copy link

The command

connection = await MongoClient.connect(global.__MONGO_URI__, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
    });

has been deprecated. The useNewUrlParserand useUnifiedTopology were removed from the MongoClientOptions as per the explanation given by MongoDb
https://www.mongodb.com/community/forums/t/argument-of-type-usenewurlparser-boolean-useunifiedtopology-boolean-is-not-assignable-to-parameter-of-type/169033/3

Therefore, it is recommended to update this library's documentation to avoid other users to struggle.
Cheers
RS

@NickVanzo
Copy link

Strongly agree. I've lost a decent amount of time trying to find a workaround! An update to the library's documentation should be included in jest-mongodb

@jorisw
Copy link

jorisw commented May 13, 2023

The README also refers to MongoClient.close() which no longer exists, due to which I don't know how to do a teardown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants