dcaponi / clean-architecture-implementation

A quick and dirty implementation of Uncle Bob's Clean Architecture paradigm
17 stars 8 forks source link

Suggestion: use the mongoose loadClass() method to create schemas from the Model #1

Open Alphabeto opened 4 years ago

Alphabeto commented 4 years ago

Would be nice to use the loadClass() method (https://mongoosejs.com/docs/guide.html#es6-classes) to create the mongoose shcemas from the Model plain classes without the need to re-write the model attributes as Mongoose schemas.

Nice project :-)