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

Deprecated Stuff #197

Closed
Exlord opened this issue Oct 27, 2018 · 2 comments · Fixed by #223
Closed

Deprecated Stuff #197

Exlord opened this issue Oct 27, 2018 · 2 comments · Fixed by #223

Comments

@Exlord
Copy link

Exlord commented Oct 27, 2018

DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
Automattic/mongoose#6890 (comment)

@webdelin
Copy link

webdelin commented Apr 9, 2019

mongoose.connect(keys.mongoURI, {
useCreateIndex: true,
useNewUrlParser: true
})
Node ->
[nodemon] restarting due to changes...
[nodemon] starting node index index.js
Server Started on 5000
MongoDB Connected

@tinevra17
Copy link

@webdelin where is the file that I need to change to fix this issue?

diegohaz pushed a commit that referenced this issue Mar 16, 2020
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

Successfully merging a pull request may close this issue.

3 participants