question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request : Mongo connection string method is deprecated. Option to use new connection method.

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mcMickJuicecommented, Aug 3, 2018

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.

0reactions
pleerockcommented, Oct 27, 2018

fixed by #2772

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found