When I search youtube for a project with express js and MongoDB. In most videos, the project is done with mongoose js. So my question is why do I need to learn mongoose?
As MongoDB is a document-based NoSQL database, it does not give support for many features like hooks, index, etc. You have to code for everything that you need. While using mongoose, it does the job. you just need to use its syntax and it can manage your data for MongoDB in a very sufficient and coding-friendly way. It is a ODM for MongoDB which manages Documents as a Objects in memory