I want to write my mongoose model in ES6. Basically replace module.exports and other ES5 things wherever possible. Here is what I have.
module.exports
import mongo
To do things the ES6, class-like way, as the question states, I simply had to invoke the class with new in the exported mongoose.model function.
new
mongoose.model
export default mongoose.model('Blacklist', new Blacklist)