-
Notifications
You must be signed in to change notification settings - Fork 15
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
collection.ensureIndex is deprecated. Use createIndexes instead. #26
Comments
|
Thanks bro! <3 |
Thank |
Thx man! |
You sir, are a gentleman, and a scholar |
Tanks |
WOW! |
Thanks!!! for Helping me |
Thanks flw |
Thank you! alailsonribeiro |
const mongoose = require('mongoose'); This works for me. Thanks, |
this works for me, thank you |
if you're using mongoose.connect, I am using like below, and receiving no warning:
|
Me salvou de muito estresse alailsonribeiro muito obrigado. |
mongoose.connect("mongodb://localhost:27017/userDB",{useNewUrlParser:true,useUnifiedTopology: true,useCreateIndex:true}); |
Muito obrigado, deu certo! |
When using
mongoose-plugin-autoinc
this warning pops up, didn't find another issue for it so thought I'd make one.(node:28096) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
The text was updated successfully, but these errors were encountered: