I know that mongoose.model("myModel")
returns the myModel
model. But how can I get Mongoose to give me an array/object/list of all models, that are currently registered?
I think that somewhat is a design flaw.
As of now, there is an offcial way: Mongoose#modelNames()
.