I want to generate a User Record Number automatically. When a new user is added, they get assigned a User Record Number. The User Record Number follows this format: “US-000000”. The first user added to a account will be User Record Number US-000001.
How to do this? Is there any way in mongodb to autoincrement on based on a format as in SQL Server?