Answers for "MongoParseError: options usefindandmodify, usecreateindex are not supported"

6

mongoparseerror: option usecreateindex is not supported

This happend because in mongoose version 6 and above don't require those
" { useNewUrlParser: true, 
     useUnifiedTopology: true, 
     useCreateIndex: true, 
     useFindAndModify: false,} "
so just delet it.
And if you still see "app crashed - waiting for file changes before starting..."
just save it one more time and it will work
Posted by: Guest on September-28-2021
1

MongoParseError: options buffermaxentries, usefindandmodify, usecreateindex are not supported

// Actualizar el paquete de mongoose
npm i mongoose
Posted by: Guest on September-17-2021

Code answers related to "MongoParseError: options usefindandmodify, usecreateindex are not supported"

Code answers related to "Javascript"

Browse Popular Code Answers by Language