(node:71307) [DEP0079] DeprecationWarning

前端 未结 8 1864
故里飘歌
故里飘歌 2021-01-17 21:11

Try to update MongoDB document Getting Deprecation Warning as

(node:71307) [DEP0079] DeprecationWarning: Custom inspection function on Objects via

8条回答
  •  忘掉有多难
    2021-01-17 21:34

    Another way to set it is...

    mongoose.connect(
        "mongodb://:@",
        { 
          useNewUrlParser: true, 
          useCreateIndex: true 
        }
      )
    

    More information can be found here: https://github.com/Automattic/mongoose/issues/6890

提交回复
热议问题