Error i am getting- DeprecationWarning: Mongoose: the strictQuery
option will be switched back to false
by default in Mongoose 7. Use mongoose.set('strictQuery', false);
if you want to prepare for this change. Or use mongoose.set('strictQuery', true);
to suppress this warning.
actually in the useNewUrlParser:true in the 8th line i was trying to figure out the changes that can be made but was unable to solve it.