Answers for "fix error uncaughtException: MongoParseError: options usecreateindex, usefindandmodify 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

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language