todo-mvc-auth-local
todo-mvc-auth-local copied to clipboard
change line 5 on database.js to remove deprecated connection options
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,
});
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.