Learn to understand something by following the previous steps:
1. What is it
2. What’s the use
3,…
So for Mongoose, do the same.
But a Google search will show you a bunch of code that tells you how to use it.
After many researches, we know that Mongoose is about:
\
1. Mongoose is a Node.js library
2, the function is to make Node.js better and more convenient to operate mongoDB. Simply put, Mongoose is node.js using mongoDB ORM.
\
MongoDB and Node.js support javascript and JSON, so they’re a natural fit.
\
Note that Mongoose is not mongos. Mongos is an automatic sharding module for mongoDB to build a large, scalable database cluster that can be incorporated into dynamically growing machines.