Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node:1452) DeprecationWarning: open() is deprecated in mongoose >= 4.11.0, use openUri() instead, or set the useMongoClient option if using connect() or createConnection(). See http://mongoosejs.com/docs/connections.html#use-mongo-client #213

Open
nahidmbstu opened this issue Oct 22, 2017 · 1 comment

Comments

@nahidmbstu
Copy link

when i try to start the server , it gives me this warning !!! how anyone help ?

@Yogendra0Sharma
Copy link

@nahidmbstu : Try to use mongoose.connect(process.env.MONGODB,{useMongoClient: true});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants