project_mern_memories icon indicating copy to clipboard operation
project_mern_memories copied to clipboard

app crashed....error- useFindAndModify is an invalid property

Open Shamal-Shine opened this issue 3 years ago • 7 comments

Shamal-Shine avatar Jan 19 '22 14:01 Shamal-Shine

give solution please

Shamal-Shine avatar Jan 19 '22 14:01 Shamal-Shine

Remove that line, in current mongoose that line is no more required

KasRoudra avatar Jan 20 '22 08:01 KasRoudra

Thank you....problem is solved.

Shamal-Shine avatar Jan 21 '22 10:01 Shamal-Shine

Hey :) I have the same problem.

It says: Error: useFindAndModify is an invalid option.

Which line do you mean to remove @KasRoudra ?

Maybe @adrianhajdin you can help out?

Please help :)

mitchxxmitch-code avatar Apr 07 '22 06:04 mitchxxmitch-code

@mitchxxmitch-code Remove 24 th line of index.js

KasRoudra avatar Apr 07 '22 07:04 KasRoudra

Thanks! :)

mitchxxmitch-code avatar Apr 07 '22 07:04 mitchxxmitch-code

Remove the line that says mongoose.set('useFindAndModify', false);

quriosapien avatar May 13 '22 18:05 quriosapien