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

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 ...@@ -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: The success handler will always receive an object with two properties:
* `count` - an integer, total number records matching the where clause * `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, within the limit and offset range * `rows` - an array of objects, the records matching the where clause and other filters due to associations, within the limit and offset range
```js ```js
Project Project
...@@ -115,7 +115,7 @@ 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: Suppose you want to find all users who have a profile attached:
```js ```js
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!