These are chat archives for Automattic/mongoose

4th
Sep 2016
temuccio
@temuccio
Sep 04 2016 16:37
Hello all...
I have one question
I have a function findOne
if the system doesn't find the key, how I can add it?
temuccio
@temuccio
Sep 04 2016 16:54
If I use the .save option, I have this warning
DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
Do you can help me to not have warning?
And why when I insert with .save, it generate in schema a variable _v set to 0?
if I use .insert, this variable are not generated