How to create an Auto Increment Sequence with mongoose library

Hello dear,
how to create an auto increment sequence with prefix, for example: USR00001 etc…

Little details: language Nodejs, and library mongoose.

Thank you.

Regards,
Michele

Hi @Michele_Di_Mauro ,

Welcome to MongoDB community.

I suggest you to read

And use a similar trick.

Thanks
Pavel