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 549037a7
authored
May 21, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3778 from syldor/nested-eager-loading-doc
add where clause
2 parents
72b97eff
7f0b9d78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
docs/docs/models-usage.md
docs/docs/models-usage.md
View file @
549037a
...
...
@@ -538,11 +538,17 @@ This will produce an outer join. However, a `where` clause on a related model wi
```
js
User
.
findAll
({
include
:
[
{
model
:
Tool
,
as
:
'Instruments'
,
include
:
[
{
model
:
Teacher
,
include
:
[
/* etc */
],
required
:
false
}
]}
]
include
:
[{
model
:
Tool
,
as
:
'Instruments'
,
include
:
[{
model
:
Teacher
,
where
:
{
school
:
"Woodstock Music School"
},
required
:
false
}]
}]
}).
then
(
function
(
users
)
{
/* ... */
})
...
...
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