Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.

mongoose
  .connect(DB, {
    useNewUrlParser: true,
    useCreateIndex: true,
    useUnifiedTopology: true,
    useFindAndModify: false,
  })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #URL #string #parser #removed #future #To #pass #option #true
ADD COMMENT
Topic
Name
7+7 =