Skip to content

useNewUrlParser and useUnifiedTopology are deprecated #20

@sangaray

Description

@sangaray

In Index.js file appears
const PORT = process.env.PORT || 9000;
mongoose
.connect(process.env.MONGO_URL, {
useNewUrlParser: true,
useUnifiedTopology: true,
})

but those two have been deprecated and when running the server shows a warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions