Answers for "DeprecationWarning: collection.ensureIndex is deprecated vidly app"

11

collection.ensureIndex is deprecated

mongoose.connect(dbURI, {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
    useFindAndModify: true,
})
Posted by: Guest on December-01-2020

Code answers related to "DeprecationWarning: collection.ensureIndex is deprecated vidly app"

Code answers related to "Javascript"

Browse Popular Code Answers by Language