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

Commit 96cd1a2c by Jan Aagaard Meier

Merge pull request #4052 from Verdier/patch-3

[ci skip] Note about querying and associations
2 parents 28544d54 b5ea57c1
Showing with 11 additions and 0 deletions
......@@ -141,6 +141,17 @@ JSONB can be queried in three different ways.
}
```
### Relations / Associations
```js
// Find all projects with a least one task where task.state === project.task
Project.findAll({
include: [{
model: Task,
where: { state: Sequelize.col('project.state') }
}]
})
```
## Pagination / Limiting
```js
// Fetch 10 instances/rows
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!