22.09.23 17:54 작성
·
233
1
DB 커넥션을 따라하는데 useCreateIndex: true, useFindAndModify: false
해당 옵션 두개가 설정이 안됩니다. 저 두개 옵션을 제외하니 정상 실행되는데 이유를 알 수 있을까요?
해당 옵션들이 없어도 진행하는데 문제가 없을까요?
Example app listening on port 5000}!
MongoParseError: options usecreateindex, usefindandmodify are not supported
at parseOptions (D:\Src\boiler-plate\node_modules\mongodb\lib\connection_string.js:290:15)
at new MongoClient (D:\Src\boiler-plate\node_modules\mongodb\lib\mongo_client.js:65:63)
at D:\Src\boiler-plate\node_modules\mongoose\lib\connection.js:801:16
at new Promise (<anonymous>)
at NativeConnection.Connection.openUri (D:\Src\boiler-plate\node_modules\mongoose\lib\connection.js:798:19)
at D:\Src\boiler-plate\node_modules\mongoose\lib\index.js:381:10
at D:\Src\boiler-plate\node_modules\mongoose\lib\helpers\promiseOrCallback.js:41:5
at new Promise (<anonymous>)
at promiseOrCallback (D:\Src\boiler-plate\node_modules\mongoose\lib\helpers\promiseOrCallback.js:40:10)
at Mongoose._promiseOrCallback (D:\Src\boiler-plate\node_modules\mongoose\lib\index.js:1234:10) {
[Symbol(errorLabels)]: Set(0) {}
}
답변 1
0
2022. 09. 25. 03:22
안녕하세요
useNewUrlParser: true, // <-- no longer necessary
useUnifiedTopology: true // <-- no longer necessary
이 두 가지를 제거해주세요 ~
없어도 상관없습니다 ~
감사합니다!