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
Bug with indexes (the indexes are not created) #5317
Comments
I had a problem with index creation as well. In my case it was related to schema.options.autoIndex. You can check if #5324 fixes your problem. |
I set autoIndex:false, and call the Model.ensureIndexes() to build the index, but index not create. Is that related to the issue?
and it just create _id index as default:
Any ideas? |
HI i have a model used to store likes for a "news" model like this:
The problem is that the indexes are not created and i don't have feedback from the ".on('error')" and ".on('index')" callbacks, they're not being executed.
MongoDB version: 3.4.2
Mongoose version: 4.10.4
NodeJS version: v6.7.0
The text was updated successfully, but these errors were encountered: