deno.land / x / mongoose@6.7.5 / docs / advanced_schemas.md
loadClass()
Mongoose allows creating schemas from ES6 classes.
The loadClass()
function lets you pull in methods,
statics, and virtuals from an ES6 class. A class method maps to a schema
method, a static method maps to a schema static, and getters/setters map
to virtuals.
[require:Creating from ES6 Classes Using `loadClass\(\)`]
Version Info