-
useNewUrlParser와 useUnifiedTopology 에러프론트엔드/MongoDB 2024. 4. 16. 21:04728x90
useNewUrlParser와 useUnifiedTopology 에러
(node:15940) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use `node --trace-warnings ...` to show where the warning was created) river version 4.0.0 and will be removed in the next major version (node:15940) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version이 경고는 MongoDB 드라이버에서 옵션인 useNewUrlParser와 useUnifiedTopology가 더 이상 사용되지 않으며, 다음 주요 버전에서 제거될 예정임을 알려줍니다. 이러한 경고는 MongoDB 드라이버 버전 4.0.0 이후부터 발생합니다.
useNewUrlParser, useUnifiedTopology, useFindAndModify, and useCreateIndex are no longer supported options. Mongoose 6 always behaves as if useNewUrlParser, useUnifiedTopology, and useCreateIndex are true, and useFindAndModify is false. Please remove these options from your code.
useNewUrlParser, useUnifiedTopology, useFindAndModify 및 useCreateIndex는 더 이상 지원되지 않는 옵션입니다. Mongoose 6은 항상 useNewUrlParser, useUnifiedTopology 및 useCreateIndex가 true이고 useFindAndModify가 false인 것처럼 동작합니다. 코드에서 이러한 옵션을 제거하세요.
[출처] 바로가기728x90'프론트엔드 > MongoDB' 카테고리의 다른 글
Mongoose - $and, $ne, $nin, $in, $or (0) 2024.10.28 Mongoose - populate (0) 2024.10.28 MongoDB와 Mongoose의 차이점 (0) 2024.01.09