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

Commit 0b83e424 by Sushant

[ci skip] (docs) document eagarloading include.paranoid option

* Fix #3582
1 parent fab5349b
Showing with 14 additions and 0 deletions
......@@ -556,6 +556,20 @@ To include all attributes, you can pass a single object with `all: true`:
User.findAll({ include: [{ all: true }]});
```
### Including soft deleted records
In case you want to eager load soft deleted records you can do that by setting `include.paranoid` to `true`
```js
User.findAll({
include: [{
model: Tool,
where: { name: { $like: '%ooth%' } },
paranoid: true // query and loads the soft deleted records
}]
});
```
### Ordering Eager Loaded Associations
In the case of a one-to-many relationship.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!