Feature Request : Mongo connection string method is deprecated. Option to use new connection method.
See original GitHub issueIssue type:
[ ] question [ ] bug report [x] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[x] mongodb
[ ] mssql
[ ] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem: There is no necessary steps to reproduce warning. Just create any database connection using sample mongodb and it will come back.
(node:27508) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Avoid "current URL string parser is deprecated" warning by ...
The connect() method accepts a MongoClientOptions instance as second argument. But it doesn't have a property called useNewUrlParser . I also ...
Read more >Connection String URI Format — MongoDB Manual
The authentication database to use if the connection string includes username:password@ authentication credentials but the authSource option is unspecified.
Read more >Class ConnectionString
Represents a Connection String. The Connection String describes the hosts to be used and options. The format of the Connection String is:
Read more >mongo_client – Tools for connecting to MongoDB - PyMongo
To get a Database instance from a MongoClient use either dictionary-style or ... The client object is thread-safe and has connection-pooling built in....
Read more >Mongoose v6.8.1: API docs
Do not use this to create a new ObjectId instance, use mongoose.Types. ... [options] «Object» passed down to the MongoDB driver's connect() function, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
From the SO posted above, this response has the information you need.
TL;DR; pin your version of mongodb to ~3.0.8 (or really, ~3.0.x). I did this in my project and these warnings went away. This is unrelated to current TypeORM connection settings as far as I can tell.
fixed by #2772