failed to generate unique invite code with randomlize library in mongodb
I made a user schema based on mongoose or mongodb, in which there is a invitation code and this code is always unique in the database. import randomize from 'randomatic'; const userSchema = new Schema<UserDataInterface>( { username: { type: String,…