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

ensureIndex is deprecated in Mongoose >= 4.12.0 #268

Closed
efkan opened this issue Oct 4, 2017 · 6 comments
Closed

ensureIndex is deprecated in Mongoose >= 4.12.0 #268

efkan opened this issue Oct 4, 2017 · 6 comments

Comments

@efkan
Copy link

efkan commented Oct 4, 2017

When my app starting up, I get this warning:

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

@jjtortosa
Copy link

+1

@xiao-xiansheng
Copy link

+1

2 similar comments
@ivancsicsmarkus
Copy link

+1

@AdoneZ
Copy link

AdoneZ commented Oct 7, 2017

+1

jeresig added a commit to jeresig/connect-mongo that referenced this issue Oct 8, 2017
This fixes the warning issued by mongoose: `DeprecationWarning: `ensureIndex()` is deprecated in Mongoose >= 4.12.0, use `createIndex()` instead`
@jdesboeufs
Copy link
Owner

OK working on it. We already have two PR but it needs further investigation for prior-3.0 MongoDB versions.

@jdesboeufs
Copy link
Owner

Published 2.0.0

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

6 participants