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

Commit b5ea57c1 by Luc Verdier

[ci skip] Note about querying and associations

1 parent 28544d54
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!