sclorg / nodejs-ex

node.js example
Apache License 2.0
367 stars 9.12k forks source link

Code defaults to "admin" database, doesn't respect MONGODB_DATABASE #243

Open alberttwong opened 4 years ago

alberttwong commented 4 years ago

Using MONGO_URL=mongodb+srv://user:abcd0000@cluster0.2aphz.mongodb.net/sampledb?retryWrites=true&w=majority

alberttwong commented 4 years ago

https://github.com/sclorg/nodejs-ex/pull/246