Make sure that ur updating ur connection link to the mongodb URL and not the mongodb on your localhost... Update the MONGO_URI variable in your .env file with the link to ur mongodb url