Using plugins
Plugins are used by either importing a module, or installing the relevant package, and then calling theuse method.
Depending on the plugin, options may be provided.
Writing plugins
A plugin is nothing more than anasync function that performs customizations.
Write your own plugin
Each plugin is nothing more than anasync function that can perform customizations at either Back-end level, Collection level, or both.
Making your plugin act differently depending on the collection
When making a plugin, you may want it to generalize to many different Collections. This can be achieved by adopting different behavior depending on theschema of the Collection being targeted.