MongoDB is a document-oriented NoSQL database used for high volume data storage. Instead of using tables and rows as in the traditional…