Thanks all,
Yes i have installed mongoDB compass community when i started working with the current exercise. it used to work fine,
@Ramachandra : connection used to work before when was working with db connection chapter.
currently am working with migration task and the connection suddenly stopped working.
my assumption would be, i have used the command npm update recently, by any chance this might created the problem?
here are my env details which i configure for db connection
SECRET_KEY=everyone_is_a_critic
MFLIX_DB_URI = mongodb+srv://m2student:pwd@mflix.kger2.mongodb.net/sample_mflix?authSource=admin
MFLIX_NS=sample_mflix
PORT=5000