I have 7 years of software development experience, mainly in web apps and my tools/skillset resolves around JavaScript ecosystem, I offer a solid foundation in frontend and backend development.
Yes wanted to do this but realized that it will be repeatation of code so I added a functionality to the
getInstance (init =true) {
init && initScheme();
return mongoose.model("your model name");
}
Yes wanted to do this but realized that it will be repeatation of code so I added a functionality to the
getInstance (init =true) {
init && initScheme();
return mongoose.model("your model name");
}
This is way better, nice job man!
I am going to change the structure of this model soon.