Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs for loading ORM plugins #7356

Merged
merged 1 commit into from
Aug 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/v3.x/concepts/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,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 @@ -310,7 +312,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