todo-mvc-auth-local icon indicating copy to clipboard operation
todo-mvc-auth-local copied to clipboard

change line 5 on database.js to remove deprecated connection options

Open codestafa opened this issue 2 years ago • 2 comments

from

const conn = await mongoose.connect(process.env.DB_STRING, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
      useFindAndModify: false,
      useCreateIndex: true
    })

to


const conn = await mongoose.connect(process.env.DB_STRING, {
      useFindAndModify: false,
      useCreateIndex: true,
    });

codestafa avatar Sep 07 '22 00:09 codestafa

I have also opened a pull request for this as the app will crash with those connection options present. The mongoose version also needs to be updated to prevent crashes.

calebdye avatar Jan 23 '23 18:01 calebdye