-
Notifications
You must be signed in to change notification settings - Fork 237
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
Add support to protocol to be 'monogodb+srv' #458
Conversation
e8a95da
to
cf2bde0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nitpick. LGTM otherwise.
lib/mongodb.js
Outdated
@@ -49,13 +49,17 @@ exports.generateMongoDBURL = generateMongoDBURL; | |||
* Generate the mongodb URL from the options | |||
*/ | |||
function generateMongoDBURL(options) { | |||
// See https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format | |||
// It can be `mongodb+srv` now. | |||
var protocol = options.protocol || 'mongodb'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency can we make this options.protocol = options.protocol || 'mongodb'
cf2bde0
to
695bb20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay for the memwatch change.
"eslint": "^5.1.0", | ||
"eslint-config-loopback": "^10.0.0", | ||
"loopback-datasource-juggler": "^3.0.0", | ||
"memwatch-next": "^0.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay :)
Makefile
Outdated
@@ -19,6 +19,7 @@ b benchmark benchmarks: | |||
|
|||
.PHONY: l ld leak leak-detection | |||
l ld leak leak-detection: | |||
npm i memwatch-next --no-save |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use @airbnb/node-memwatch
instead here. It's compatible with Node 8/10. And then can you please update the Leak Detection
section of the readme explaining that it only works on Node 8/10.
ad796be
to
46720c5
Compare
See https://docs.mongodb.com/manual/reference/connection-string/
Description
We don't have a way to specify
mongodb+srv://
. This PR makes it configurable.Related issues
Checklist
guide