Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 78fb5c15
authored
Nov 24, 2017
by
Joe Miller
Committed by
Sushant
Nov 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(model-usage): findAndCountAll and includes (#8689)
1 parent
398c1ce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
docs/models-usage.md
docs/models-usage.md
View file @
78fb5c1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment