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

Commit 78fb5c15 by Joe Miller Committed by Sushant

docs(model-usage): findAndCountAll and includes (#8689)

1 parent 398c1ce7
Showing with 3 additions and 3 deletions
......@@ -95,8 +95,8 @@ This is a convenience method that combines`findAll` and `count` (see below) this
The success handler will always receive an object with two properties:
* `count` - an integer, total number records matching the where clause
* `rows` - an array of objects, the records matching the where clause, within the limit and offset range
* `count` - an integer, total number records matching the where clause and other filters due to associations
* `rows` - an array of objects, the records matching the where clause and other filters due to associations, within the limit and offset range
```js
Project
......@@ -115,7 +115,7 @@ Project
});
```
`findAndCountAll` also supports includes. Only the includes that are marked as `required` will be added to the count part:
It support includes. Only the includes that are marked as `required` will be added to the count part:
Suppose you want to find all users who have a profile attached:
```js
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!