-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix,feat: support MongoDB DNS seed list connection #7136
Conversation
As described in [MongoDB Docs](https://docs.mongodb.com/manual/reference/connection-string/#dns-seed-list-connection-format), an additional connection string format called DNS Seed List Connection format can be used. As this is the default format for MongoDB Atlas, the hosted service of MongoDB, this should be available also for typeorm. The connection format is identified by the url-schema "mongodb+srv" and does not allow specifying a port. Fixes typeorm#3347 Fixes typeorm#3133
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.
It's works, thank you so much.
This should be merged asap. |
Could this be merged ? |
Please merge and release. |
This hasn't been rejected, the maintainers just haven't gotten around to merging it, and more comments won't make it any faster. Use the 👍 on the original PR instead of spamming. |
Thank you contribution and sorry for waiting! Fix will be available in v0.2.30 later this week. |
@pleerock Thanks. Can we know the exact date? |
Dose this support |
As described in MongoDB Docs, an additional connection string format called DNS Seed List Connection format can be used. As this is the default format for MongoDB Atlas, the hosted service of MongoDB, this should be available also for typeorm.
The connection format is identified by the url-schema "mongodb+srv" and does not allow specifying a port.
Description of change
When using the DNS seed connection list format,
mongodb+srv
must be used as URL schema and a port must not be provided!Can simply be verified with a free account of MongoDB Atlas, where this connection format is the default when using MongoDB driver 3.6+
Fixes #3347
Fixes #3133
Fixes #7009
Pull-Request Checklist
master
branchnpm run lint
passes with this changenpm run test
passes with this changeFixes #0000