Skip to content

Commit

Permalink
Fix docs for loading ORM plugins (strapi#7356)
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
Signed-off-by: Gil Fernandes <gil.fernandes@onepointltd.com>
  • Loading branch information
derrickmehaffy authored and onepointconsulting committed Aug 13, 2020
1 parent 9cefcec commit e03f2e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/v3.x/concepts/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ module.exports = {

When present, they are loaded to let you customize your database connection instance, for example for adding some plugin, customizing parameters, etc.

You will need to install the plugin using the normal `npm install the-plugin-name` or any of the other supported package tools such as yarn then follow the below examples to load them.

:::: tabs

::: tab Mongoose
Expand Down Expand Up @@ -311,7 +313,7 @@ Another example would be using the `bookshelf-uuid` plugin for MySQL, you can re
'use strict';

module.exports = (bookshelf, connection) => {
bookshelf.plugin(require('bookshelf-uuid'));
bookshelf.plugin('bookshelf-uuid');
};
```

Expand Down

0 comments on commit e03f2e6

Please sign in to comment.