Deletes a existing model so that it can be overwritten with another model (deletes from mongoose.connection and typegoose models cache and typegoose constructors cache)
The Model's mongoose name
class ClassName {}const NameModel = getModelForClass(ClassName);deleteModel("ClassName"); Copy
class ClassName {}const NameModel = getModelForClass(ClassName);deleteModel("ClassName");
Generated using TypeDoc
Deletes a existing model so that it can be overwritten with another model (deletes from mongoose.connection and typegoose models cache and typegoose constructors cache)