Using ES6 classes for Sequelize 4 models

Hugo Di Francesco on May 09, 2018

The ES2015 or ES6 specification introduced class to JavaScript. Libraries like React went from React.createClass to class MyComponent extends Rea... [Read Full]

It's possible to do something like this with mongoose ?

From the docs you should be able to do schema.loadClass(MyModel), see

code of conduct - report abuse