-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mongodb): prevent "db.collections is not a function" error (#232)
What does this PR do / solve? ----------------------------- Initial goal was to fix the following warning: `DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to MongoClient.connect` As a first step, this PR fixes the `db.collections is not a function` error, when trying to run `docker-compose up --build`. Overview of changes ------------------- - upgrade the `mongodb` client to a more recent version: `2.2.33` - switch to the new Mongo URI format How to test this PR? -------------------- ``` $ docker-compose up --build -d $ npm run test-docker ```
- Loading branch information
1 parent
b8d4bbe
commit 2c353ca
Showing
4 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters