question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ensureIndex is deprecated in Mongoose >= 4.12.0

See original GitHub issue

When my app starting up, I get this warning:

DeprecationWarning: ensureIndex()is deprecated in Mongoose >= 4.12.0, usecreateIndex() instead

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jjtortosacommented, Oct 4, 2017

+1

0reactions
jdesboeufscommented, Oct 9, 2017

Published 2.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

`ensureIndex()` is deprecated in Mongoose >= 4.12.0, use ...
I finally solved this quite simply by following the official mongoose docs . Basically there is a flag to pass through the connection...
Read more >
DeprecationWarning: 'ensureIndex()' is deprecated in ... - GitHub
This warning message only appears when I upgraded to 4.12.0. DeprecationWarning: 'ensureIndex()' is deprecated in Mongoose >= 4.12.0, us...
Read more >
`ensureIndex()` is deprecated in Mongoose >= 4.12.0, use ...
Coding example for the question DeprecationWarning: `ensureIndex()` is deprecated in Mongoose >= 4.12.0, use `createIndex()` instead-mongodb.
Read more >
526476 – Warning when starting server: "DeprecationWarning ...
Bug 526476 - Warning when starting server: "DeprecationWarning: `ensureIndex()` is deprecated in Mongoose >= 4.12.0, use `createIndex()` instead".
Read more >
angular-fullstack/generator-angular-fullstack - Gitter
"DeprecationWarning: ensureIndex() is deprecated in Mongoose >= 4.12.0, use createIndex() instead". But I can't find where the app is using ensureIndex ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found