Skip to content

Commit

Permalink
Fix params.sequelize example
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Jul 3, 2018
1 parent 05f4b36 commit 0a3d871
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ app.service('messages').hooks({
find(context) {
// Get the Sequelize instance. In the generated application via:
const sequelize = context.app.get('sequelizeClient');
const { User } = sequelize.models;

context.params.sequelize = {
include: [ User ]
}

return context;
}
}
});
Expand Down

0 comments on commit 0a3d871

Please sign in to comment.