---
title: "Discussion on \"[Fix] MongoDB DeprecationWarning in NodeJS\" | Hashnode"
description: "Discussion on \"[Fix] MongoDB DeprecationWarning in NodeJS\". Got an error message of \"DeprecationWarning:\", and not sure where is wrong from the code.\n\nThe problem solved with this :\nmongoose.connect('mongodb://localhost/node-js-blog-dbtest', \n{useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: t..."
url: "https://hashnode.com/posts/fix-mongodb-deprecationwarning-in-nodejs/63d6701cb76cc420d7de80d8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[Fix\] MongoDB DeprecationWarning in NodeJS](https://stpn.hashnode.dev/fix-mongodb-deprecationwarning-in-nodejs?utm_source=hashnode&utm_medium=feed)

Got an error message of "DeprecationWarning:", and not sure where is wrong from the code. The problem solved with this : mongoose.connect('mongodb://localhost/node-js-blog-dbtest', {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: t...

Jan 29, 2023 · 1 min read · stpn.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#codelearning](https://hashnode.com/tag/codelearning)

## Written by

[STIPΞN](https://hashnode.com/@stipencui)

@stipencui

  
[View profile](https://hashnode.com/@stipencui)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
