Closed andyfry01 closed 6 years ago
Thanks for sharing this.
So it looks like 3.0.0 was just released on December 24th. https://github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#300-2017-12-24
Since a major version bump will be a breaking change maybe we should get these changes into #25.
A PR is more than welcome. Please fork the async-await-and-multiple-connections
and create a PR against that branch. 🙏
This will be resolve with #25
Hello!
The MongoClient.connect method in the MongoDB 3.6 driver has changed. See the changelog for more info, beginning with "MongoClient.connect works as expected but it returns...". MongoClient.connect no longer returns the database, but an instance of MongoClient.
So the connect method will have to be refactored to something like the following:
Or maybe the dbName could be included in the options object.
Happy to do a pull request.