ensureIndex is deprecated in Mongoose >= 4.12.0
See original GitHub issueWhen my app starting up, I get this warning:
DeprecationWarning:
ensureIndex()is deprecated in Mongoose >= 4.12.0, use
createIndex() instead
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1
Published
2.0.0