A curated list of plugins and modules for objection. Only plugins that follow the best practices are accepted on this list. Other modules like plugins for other frameworks and things that cannot be implemented following the best practices are an exception to this rule. If you are a developer of or otherwise know of a good plugin/module for objection, please create a pull request or an issue to get it added to this list.
# 3rd party pluginsWhen possible, objection.js plugins should be implemented as class mixins (opens new window). A mixin is simply a function that takes a class as an argument and returns a subclass. Plugins should not modify objection.Model, objection.QueryBuilder or any other global variables directly. See the example plugin (opens new window) for more info. There is also another example (opens new window) that should be followed if your plugin takes options or configuration parameters.
Mixin is just a function that takes a class and returns an extended subclass.
Mixins can be then applied like this:
This doesn't work since mixins never modify the input:
Multiple mixins:
There are a couple of helpers in objection main module for applying multiple mixins.
Mixins can also be used as decorators:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4