I would like to create an auto increment ID with Mongoose for MongoDB. I have already searched for some examples, but there is nothing useful in the MongoDB documentation.
At npm, we have mongoose-auto-increment and mongoose-sequence to achieve this functionality very easily.