smartprix / xorm

NodeJS ORM based on ObjectionJS with some extra utilities
18 stars 4 forks source link

Consider converting to plugin #26

Open rohit-gohri opened 5 years ago

rohit-gohri commented 5 years ago

Objection.js Plugins: https://vincit.github.io/objection.js/guide/plugins.html https://vincit.github.io/objection.js/guide/plugins.html#plugin-development-best-practices

We could break the Model class into multiple simpler plugins:

By default xorm could export objection with all plugins applied, while also exporting individual plugins allowing one to use only those features they need