Skip to content

Commit

Permalink
collection.ensureIndex is deprecated error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paaaaak committed Sep 7, 2023
1 parent 3125204 commit 1a9818a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/index.js
Expand Up @@ -16,6 +16,7 @@ app.use(express.json());

// Mongo DB 연결
mongoose.connect(process.env.MONGO_URL, {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true
})
Expand Down

1 comment on commit 1a9818a

@Paaaaak
Copy link
Owner Author

@Paaaaak Paaaaak commented on 1a9818a Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.