Error Connecting to the Mongo Database

System Information
  • Strapi Version: 3.4.3
  • Operating System: windows 10
  • Database: MongoDB
  • Node Version: 14.15.1
  • NPM Version: 6.14.9

So I had made some changes to the collection type and once after updating my collections and run my strapi application it tells the below error:

error connecting to the Mongo database. connection <monitor> to (ip_address) closed