不要怂,就是干,撸起袖子干!

Commit 76f5a388 by gtelljohann Committed by Mick Hansen

Fixing associations doc (#5834)

* Fixing associations doc

* Updating to nest where and attributes back under include
1 parent fb4d5a95
Showing with 4 additions and 4 deletions
......@@ -264,10 +264,10 @@ With Belongs-To-Many you can query based on **through** relation and select spec
User.findAll({
include: [{
model: Project,
through: {
attributes: ['createdAt', 'startedAt', 'finishedAt']
where: {completed: true}
}
through: {
attributes: ['createdAt', 'startedAt', 'finishedAt'],
where: {completed: true}
}
}]
});
```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!